diff options
author | Jakub Warmuz <jakub@warmuz.org> | 2015-05-10 16:11:51 +0300 |
---|---|---|
committer | Jakub Warmuz <jakub@warmuz.org> | 2015-05-10 16:11:51 +0300 |
commit | 0604a393f0ff84147a253b69348b0d3ee243eb59 (patch) | |
tree | 22f6bad2a568422fe28ca75dee01d610e8d19faa /examples | |
parent | 6f3b03db777c64bbb83dadb641d02bb491fa6935 (diff) |
examples: update restified
Diffstat (limited to 'examples')
-rw-r--r-- | examples/restified.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/restified.py b/examples/restified.py index b7b0257e2..c0252c1eb 100644 --- a/examples/restified.py +++ b/examples/restified.py @@ -4,8 +4,8 @@ import pkg_resources import M2Crypto -from letsencrypt.acme import messages2 -from letsencrypt.acme import jose +from acme import messages2 +from acme import jose from letsencrypt import network2 @@ -16,7 +16,7 @@ logger.setLevel(logging.DEBUG) NEW_REG_URL = 'https://www.letsencrypt-demo.org/acme/new-reg' key = jose.JWKRSA.load(pkg_resources.resource_string( - 'letsencrypt.acme.jose', os.path.join('testdata', 'rsa512_key.pem'))) + 'acme.jose', os.path.join('testdata', 'rsa512_key.pem'))) net = network2.Network(NEW_REG_URL, key) regr = net.register(contact=( @@ -29,7 +29,7 @@ logging.debug(regr) authzr = net.request_challenges( identifier=messages2.Identifier( typ=messages2.IDENTIFIER_FQDN, value='example1.com'), - regr=regr) + new_authzr_uri=regr.new_authzr_uri) logging.debug(authzr) authzr, authzr_response = net.poll(authzr) |