lib/acme/certificate.rb in acme-client-0.2.0 vs lib/acme/certificate.rb in acme-client-0.2.1
- old
+ new
@@ -12,9 +12,13 @@
def chain_to_pem
x509_chain.map(&:to_pem).join
end
+ def x509_fullchain
+ [x509, *x509_chain]
+ end
+
def fullchain_to_pem
- [*x509_chain, x509].map(&:to_pem).join
+ x509_fullchain.map(&:to_pem).join
end
end