Hello,
For my nodejs application in Elastic BeanStalk, without Beanstalk Load Balancer I want to set up a Letsencrypt certificate and keep the classic domain provided by AWS : xxx.xxxx.elasticbeanstalk.com
Using Webroot mode :
$ sudo ./certbot-auto --authenticator standalone --non-interactive --email xxxx@gmail.com --domains chatbot-elephoo-prod.eu-west-3.elasticbeanstalk.com --installer nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for chatbot-elephoo-prod.eu-west-3.elasticbeanstalk.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. chatbot-elephoo-prod.eu-west-3.elasticbeanstalk.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://chatbot-elephoo-prod.eu-west-3.elasticbeanstalk.com/.well-known/acme-challenge/aYuJ01CaLeJV2qHWGwrsqypU3i-jhPcNt4F2JJtR1jg: "<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: chatbot-elephoo-prod.eu-west-3.elasticbeanstalk.com
Type: unauthorized
Detail: Invalid response from
http://chatbot-elephoo-prod.eu-west-3.elasticbeanstalk.com/.well-known/acme-challenge/aYuJ01CaLeJV2qHWGwrsqypU3i-jhPcNt4F2JJtR1jg:
"<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
I think that the directory generated by certbot for the verification isn’t accessible…
I spent more than 3 days on this problem '-_- I am really stuck
Need your help guys !! thanks