diff options
author | Jakub Warmuz <jakub@warmuz.org> | 2015-03-24 21:50:53 +0300 |
---|---|---|
committer | Jakub Warmuz <jakub@warmuz.org> | 2015-03-24 21:50:53 +0300 |
commit | d9176d426727e6c2fc79fd843a7a3377473ae5e2 (patch) | |
tree | e56c8ea003d1f8ac350b33b0a6775fba51e5b299 /examples | |
parent | c242091b4ebfc4aba51b29ddd9794369e855eb3a (diff) |
Improve request_issuance
Diffstat (limited to 'examples')
-rw-r--r-- | examples/restified.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/restified.py b/examples/restified.py index 1a11bf783..1428c96cc 100644 --- a/examples/restified.py +++ b/examples/restified.py @@ -2,6 +2,8 @@ import logging import os import pkg_resources +import M2Crypto + from letsencrypt.acme import messages2 from letsencrypt.acme import jose @@ -26,7 +28,10 @@ logging.debug(regr) authzr = net.request_challenges( identifier=messages2.Identifier( - typ=messages2.IdentifierFQDN, value="example1.com"), + typ=messages2.IdentifierFQDN, value='example1.com'), regr=regr) +logging.debug(authzr) -print authzr +csr = M2Crypto.X509.load_request_string(pkg_resources.resource_string( + 'letsencrypt.client.tests', os.path.join('testdata', 'csr.pem'))) +net.request_issuance(csr, (authzr,)) |