Added a check for a failed sni_challenge

This commit is contained in:
James Kasten 2012-08-07 22:56:46 -04:00
parent da01500a68
commit c9fcad82ff

View file

@ -147,7 +147,9 @@ for name in dn:
if host is not None:
vhost.add(host)
sni_challenge.perform_sni_cert_challenge(sni_todo, os.path.abspath(req_file), os.path.abspath(key_file))
if not sni_challenge.perform_sni_cert_challenge(sni_todo, os.path.abspath(req_file), os.path.abspath(key_file), config):
print "sni_challenge failed"
sys.exit(1)
print "waiting", 3
time.sleep(3)