Set timeout for finalize to 90s

This commit is contained in:
Mathias Petermann 2020-10-07 11:51:55 +02:00
parent 235653b558
commit ef0fce2661
1 changed files with 1 additions and 2 deletions

View File

@ -905,8 +905,7 @@ class ACMEHttpIssuerPlugin(IssuerPlugin):
current_app.logger.info("Uploaded HTTP-01 challenge tokens, trying to poll and finalize the order") current_app.logger.info("Uploaded HTTP-01 challenge tokens, trying to poll and finalize the order")
# It is possible to set a deadline time. finalized_orderr = acme_client.finalize_order(orderr, datetime.datetime.now() + datetime.timedelta(seconds=90))
finalized_orderr = acme_client.finalize_order(orderr, datetime.datetime.now() + datetime.timedelta(minutes=1))
pem_certificate = OpenSSL.crypto.dump_certificate( pem_certificate = OpenSSL.crypto.dump_certificate(
OpenSSL.crypto.FILETYPE_PEM, OpenSSL.crypto.FILETYPE_PEM,