class LetsCert::FullChainFile
Fullchain file plugin @author Sylvain Daubert
Public Instance Methods
load()
click to toggle source
Load full certificate chain @return [Hash]
Calls superclass method
LetsCert::FileIOPluginMixin#load
# File lib/letscert/io_plugins/full_chain_file.rb, line 35 def load data = super if data[:chain].nil? or data[:chain].empty? cert = nil chain = [] else cert = data[:chain].shift chain = data[:chain] end { cert: cert, chain: chain } end
persisted()
click to toggle source
@return [Hash] always get true
for :cert
and :chain
keys
# File lib/letscert/io_plugins/full_chain_file.rb, line 29 def persisted @persisted ||= { cert: true, chain: true } end
save(data)
click to toggle source
Save fullchain. @param [Hash] data @return [void]
Calls superclass method
LetsCert::ChainFile#save
# File lib/letscert/io_plugins/full_chain_file.rb, line 51 def save(data) super(cert: nil, chain: [data[:cert]] + data[:chain]) end