Miserlou / Zappa

Serverless Python
https://blog.zappa.io/
MIT License
11.89k stars 1.21k forks source link

Lets Encrypt Certify Issue - 'NoneType' object has no attribute 'groups' #2197

Open ksummersill2 opened 3 years ago

ksummersill2 commented 3 years ago

I've followed the handy guide reference here to associate a Let's Encrypt SSL certificate and validating it using DNS validation. https://github.com/Miserlou/Zappa/blob/master/docs/domain_with_free_ssl_dns.md

However, I am receiving the following error message when running: zappa certify dev

The response given back:

(jobatscale) λ zappa certify dev
Calling certify for stage dev..
Are you sure you want to certify? [y/n] y
Certifying domain dev.jobatscale.com..
'NoneType' object has no attribute 'groups'
Failed to generate or install a certificate! :(

Expected Behavior

Should be able to certified the SSL certificate from the Route 53 domain name and access the application utilizing the specified domain name.

Actual Behavior

Receiving error message.

(jobatscale) λ zappa certify dev
Calling certify for stage dev..
Are you sure you want to certify? [y/n] y
Certifying domain dev.jobatscale.com..
'NoneType' object has no attribute 'groups'
Failed to generate or install a certificate! :(

Possible Fix

I am attempted to try and fix the lets-encrypt.py file for the issue with groups but not really sure where to begin.

Steps to Reproduce

Reproduce by following the guide in the repo: https://github.com/Miserlou/Zappa/blob/master/docs/domain_with_free_ssl_dns.md

Your Environment