mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02:00
Rename messages2 to messages.
This commit is contained in:
@@ -4,7 +4,7 @@ import pkg_resources
|
||||
|
||||
import M2Crypto
|
||||
|
||||
from acme import messages2
|
||||
from acme import messages
|
||||
from acme import jose
|
||||
|
||||
from letsencrypt import network
|
||||
@@ -27,8 +27,8 @@ net.update_registration(regr.update(
|
||||
logging.debug(regr)
|
||||
|
||||
authzr = net.request_challenges(
|
||||
identifier=messages2.Identifier(
|
||||
typ=messages2.IDENTIFIER_FQDN, value='example1.com'),
|
||||
identifier=messages.Identifier(
|
||||
typ=messages.IDENTIFIER_FQDN, value='example1.com'),
|
||||
new_authzr_uri=regr.new_authzr_uri)
|
||||
logging.debug(authzr)
|
||||
|
||||
@@ -38,5 +38,5 @@ csr = M2Crypto.X509.load_request_string(pkg_resources.resource_string(
|
||||
'letsencrypt.tests', os.path.join('testdata', 'csr.pem')))
|
||||
try:
|
||||
net.request_issuance(csr, (authzr,))
|
||||
except messages2.Error as error:
|
||||
except messages.Error as error:
|
||||
print error.detail
|
||||
|
||||
Reference in New Issue
Block a user