1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

save certificate after it gets issued

This commit is contained in:
Seth Schoen
2012-07-12 16:47:40 -07:00
parent 30622a436a
commit 34b61f68fa

View File

@@ -75,3 +75,7 @@ while r.challenge or r.proceed.IsInitialized():
k.session = r.session
r = decode(do(k))
print r
if r.success.IsInitialized():
open("cert.pem", "w").write(r.success.certificate)
print "Served issued certificate; certificate written to cert.pem"