mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
implement polldelay in client
This commit is contained in:
parent
c538876c35
commit
2e49fbaa5e
1 changed files with 15 additions and 2 deletions
|
|
@ -35,5 +35,18 @@ def make_request(m):
|
|||
def sign(k, m):
|
||||
m.request.sig = CSR.sign(k, sha256("(%d) (%s) (%s)" % (m.request.timestamp, m.request.recipient, m.request.csr)))
|
||||
|
||||
k=chocolatemessage(); m=chocolatemessage(); init(k); init(m); make_request(m); m.request.csr = open("req.pem").read(); sign(open("key.pem").read(), m); r=decode(do(m)); print (r); k.session = r.session; print decode(do(k))
|
||||
|
||||
k=chocolatemessage()
|
||||
m=chocolatemessage()
|
||||
init(k)
|
||||
init(m)
|
||||
make_request(m)
|
||||
m.request.csr = open("req.pem").read()
|
||||
sign(open("key.pem").read(), m)
|
||||
r=decode(do(m))
|
||||
print r
|
||||
while r.proceed.IsInitialized():
|
||||
print "waiting", r.proceed.polldelay
|
||||
time.sleep(r.proceed.polldelay)
|
||||
k.session = r.session
|
||||
r = decode(do(k))
|
||||
print r
|
||||
|
|
|
|||
Loading…
Reference in a new issue