mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
wrap csr in ComparableX509
This commit is contained in:
@@ -42,7 +42,7 @@ csr = OpenSSL.crypto.load_certificate_request(
|
|||||||
OpenSSL.crypto.FILETYPE_ASN1, pkg_resources.resource_string(
|
OpenSSL.crypto.FILETYPE_ASN1, pkg_resources.resource_string(
|
||||||
'acme', os.path.join('testdata', 'csr.der')))
|
'acme', os.path.join('testdata', 'csr.der')))
|
||||||
try:
|
try:
|
||||||
acme.request_issuance(csr, (authzr,))
|
acme.request_issuance(jose.util.ComparableX509(csr), (authzr,))
|
||||||
except messages.Error as error:
|
except messages.Error as error:
|
||||||
print ("This script is doomed to fail as no authorization "
|
print ("This script is doomed to fail as no authorization "
|
||||||
"challenges are ever solved. Error from server: {0}".format(error))
|
"challenges are ever solved. Error from server: {0}".format(error))
|
||||||
|
|||||||
Reference in New Issue
Block a user