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

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")
# It is possible to set a deadline time.
finalized_orderr = acme_client.finalize_order(orderr, datetime.datetime.now() + datetime.timedelta(minutes=1))
finalized_orderr = acme_client.finalize_order(orderr, datetime.datetime.now() + datetime.timedelta(seconds=90))
pem_certificate = OpenSSL.crypto.dump_certificate(
OpenSSL.crypto.FILETYPE_PEM,