|
|
@ -1150,10 +1150,12 @@ class ACMEClient(object):
|
|
|
|
if info['status'] not in [201]:
|
|
|
|
if info['status'] not in [201]:
|
|
|
|
raise ModuleFailException("Error new order: CODE: {0} RESULT: {1}".format(info['status'], result))
|
|
|
|
raise ModuleFailException("Error new order: CODE: {0} RESULT: {1}".format(info['status'], result))
|
|
|
|
|
|
|
|
|
|
|
|
for identifier, auth_uri in zip(result['identifiers'], result['authorizations']):
|
|
|
|
for auth_uri in result['authorizations']:
|
|
|
|
domain = identifier['value']
|
|
|
|
|
|
|
|
auth_data = simple_get(self.module, auth_uri)
|
|
|
|
auth_data = simple_get(self.module, auth_uri)
|
|
|
|
auth_data['uri'] = auth_uri
|
|
|
|
auth_data['uri'] = auth_uri
|
|
|
|
|
|
|
|
domain = auth_data['identifier']['value']
|
|
|
|
|
|
|
|
if auth_data.get('wildcard', False):
|
|
|
|
|
|
|
|
domain = '*.{0}'.format(domain)
|
|
|
|
self.authorizations[domain] = auth_data
|
|
|
|
self.authorizations[domain] = auth_data
|
|
|
|
|
|
|
|
|
|
|
|
self.order_uri = info['location']
|
|
|
|
self.order_uri = info['location']
|
|
|
|