21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/acmesmith/save_certificate_service.rb', line 21
def perform!
if local_version == cert.version
return
end
log "Saving certificate CN=#{cert.common_name} (ver: #{cert.version})"
write_file(key_file, key_mode, cert.private_key)
write_file(certificate_file, certificate_mode, cert.certificate.to_pem)
write_file(chain_file, certificate_mode, cert.chain)
write_file(fullchain_file, certificate_mode, cert.fullchain)
write_file(version_file, certificate_mode, cert.version)
end
|