Method: ICSP::Commands::Certificate::Install#install_from_file

Defined in:
lib/commands/certificate/install.rb

#install_from_fileObject



27
28
29
30
31
32
33
34
35
36
# File 'lib/commands/certificate/install.rb', line 27

def install_from_file
  store = prompt.select('Select store:', available_stores)
  not_crl = prompt.no?('Is it CRL?')
  result = ::ICSP::Shell.new(
    "#{certmgr} -inst -file '#{options[:file]}' -store #{store} #{not_crl ? '' : '-crl'}", convert_to_utf8: false
  ).execute
  exit(result.exit_code) unless result.ok

  puts result
end