mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 18:34:41 +02:00
report failures
This commit is contained in:
@@ -53,6 +53,10 @@ while r.proceed.IsInitialized():
|
|||||||
r = decode(do(k))
|
r = decode(do(k))
|
||||||
print r
|
print r
|
||||||
|
|
||||||
|
if r.failure.IsInitialized():
|
||||||
|
print "Server reported failure."
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
sni_todo = []
|
sni_todo = []
|
||||||
for chall in r.challenge:
|
for chall in r.challenge:
|
||||||
print chall
|
print chall
|
||||||
@@ -80,4 +84,5 @@ if r.success.IsInitialized():
|
|||||||
open("cert.pem", "w").write(r.success.certificate)
|
open("cert.pem", "w").write(r.success.certificate)
|
||||||
print "Server issued certificate; certificate written to cert.pem"
|
print "Server issued certificate; certificate written to cert.pem"
|
||||||
elif r.failure.IsInitialized():
|
elif r.failure.IsInitialized():
|
||||||
print "Server failed."
|
print "Server reported failure."
|
||||||
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user