From 7bef1f50b9fe6d4693fbd20e502dd7c0d8e2b4d1 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Thu, 12 Jul 2012 16:38:33 -0700 Subject: [PATCH] actually do the challenge and wait for the results --- client-webserver/client.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/client-webserver/client.py b/client-webserver/client.py index 6fa1afe5c..ef155cdbc 100644 --- a/client-webserver/client.py +++ b/client-webserver/client.py @@ -63,3 +63,16 @@ for chall in r.challenge: sni_todo.append( (chall.name, dvsni_y, dvsni_nonce, dvsni_ext) ) print sni_todo +import sni_challenge + +sni_challenge.perform_sni_cert_challenge(sni_todo, "req.pem", "key.pem") + +r=decode(do(k)) +print r +while r.challenge or r.proceed.IsInitialized(): + print "waiting", 5 + time.sleep(5) + k.session = r.session + r = decode(do(k)) + print r +