From c9fcad82ff17763d4805ddd93c5f9b7be195ac6e Mon Sep 17 00:00:00 2001 From: James Kasten Date: Tue, 7 Aug 2012 22:56:46 -0400 Subject: [PATCH] Added a check for a failed sni_challenge --- client-webserver/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client-webserver/client.py b/client-webserver/client.py index e508e2763..83f17851c 100755 --- a/client-webserver/client.py +++ b/client-webserver/client.py @@ -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)