Method: LetsCert::OpenSSLIOPlugin#dump_key

Defined in:
lib/letscert/io_plugins/openssl_io_plugin.rb

#dump_key(key) ⇒ String Also known as: dump_cert

Dump key/cert data

Parameters:

  • key (OpenSSL::PKey)

Returns:

  • (String)


53
54
55
56
57
58
59
60
# File 'lib/letscert/io_plugins/openssl_io_plugin.rb', line 53

def dump_key(key)
  case @type
  when :pem
    key.to_pem
  when :der
    key.to_der
  end
end