zappa / Zappa

Serverless Python
https://zappa.ws/zappa
MIT License
3.33k stars 363 forks source link

Zappa certify not working. Incompatible ACME endpoints #1173

Closed dfleuriot closed 7 months ago

dfleuriot commented 2 years ago

ACME v2 API no longer has acme/new-reg and acme/new-authz endpoints. Error 404 is being returned!

Context

I followed the guide to associate a Let's Encrypt SSL certificate and validating it using DNS validation but I keep getting 404 errors when registering.

The following functions register_account() https://github.com/zappa/Zappa/blob/bef5c5ae9f3551a4c2e0acfcc43f4a65906e8a61/zappa/letsencrypt.py#L230-L236 and get_cert(...) https://github.com/zappa/Zappa/blob/bef5c5ae9f3551a4c2e0acfcc43f4a65906e8a61/zappa/letsencrypt.py#L265-L271

make calls to two endpoints that are no longer compatible (Reference) and are therefore returning 404 errors and the process fails.

https://acme-v02.api.letsencrypt.org/directory shows what are the endpoints and neither new-reg nor new-authz are there.

Expected Behavior

zappa certify should complete without errors and successfully certify the SSL certificate.

Actual Behavior

When running zappa certify, the following error keeps popping up:

Error registering: 404 b'404 page not found\n'
Failed to generate or install certificate! :(`

Possible Fix

Update letsencrypt.py to use the correct ACME v2 endpoints. Possibly with the updates from acme-tiny

Steps to Reproduce

run zappa certify

Your Environment

monkut commented 2 years ago

Thanks for the notification, we'll look into support.

github-actions[bot] commented 7 months ago

Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.

github-actions[bot] commented 7 months ago

Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.