mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
now successfully gets challenge data from server
This commit is contained in:
parent
800f255db6
commit
2e91aafa86
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ def do(m):
|
|||
return u.read()
|
||||
|
||||
def decode(m):
|
||||
return str(chocolatemessage.FromString(m))
|
||||
return (chocolatemessage.FromString(m))
|
||||
|
||||
def init(m):
|
||||
m.chocolateversion = 1
|
||||
|
|
@ -35,5 +35,5 @@ 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)))
|
||||
|
||||
m = chocolatemessage()
|
||||
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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue