Sha256: 096d1d196c8644718b7df7c0e6bcb98a73d870e928ad0a71dbdda98d205fdb73
Contents?: true
Size: 586 Bytes
Versions: 1
Compression:
Stored size: 586 Bytes
Contents
module LetsCert # Key file plugin # @author Sylvain Daubert class KeyFile < OpenSSLIOPlugin include FileIOPluginMixin # @return [Hash] always get +true+ for +:key+ key def persisted @persisted ||= { key: true } end # @return [Hash] def load_from_content(content) { key: load_key(content) } end # Save private key. # @param [Hash] data # @return [void] def save(data) save_to_file(dump_key(data[:key])) end end IOPlugin.register(KeyFile, 'key.pem', :pem) IOPlugin.register(KeyFile, 'key.der', :der) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
letscert-0.4.2 | lib/letscert/io_plugins/key_file.rb |