Hi all, my first post around here.
I've been struggling with certbot for a couple of days and decided to ask for some advice.
I'm using an Elastic Beansstalk as a rest API alongside a S3 to provide functionalities.
Searched everywhere for tips, trying a lot of those with no success.
I must be missing something simple but since I'm new to this it must be avoiding my eyes.
Any help would be great since I reached certbot rate limits atm.
Btw, I have already opened HTTPS port 443 on aws security.
My domains are:
S3 -> yamana.comunica.vc
EB -> yamana.api.comunica.vc
I ran this command:
sudo certbot -n -d yamana.api.comunica.vc -d yamana.comunica.vc --nginx --agree-tos --email xxx@xxx.com
It produced this output:
Error on HTTP-01 challenge to yamana.comunica.vc
Error unauthorized, 404
When I try to open the url on my browser there's no such key
sudo certbot -n -d yamana.api.comunica.vc -d yamana.comunica.vc --nginx --agree-tos --email ultra.seed.2021@gmail.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Account registered.
Requesting a certificate for yamana.api.comunica.vc and yamana.comunica.vc
Performing the following challenges:
http-01 challenge for yamana.api.comunica.vc
http-01 challenge for yamana.comunica.vc
Waiting for verification...
Challenge failed for domain yamana.comunica.vc
http-01 challenge for yamana.comunica.vc
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: yamana.comunica.vc
Type: unauthorized
Detail: Invalid response from
http://yamana.comunica.vc/.well-known/acme-challenge/5HRPHylKGB3xcr2z2th2calqIDBXCszf-qydbwJYRzw
[52.95.163.103]: "\n404 Not
Found\n\n404 Not
\n
Found- \n
- Code: NoSuchKey \n
- Message: The sp"
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.
My web server is (include version):
nginx 1.20
tried a couple of nginx.conf changes including allow all, server_name, root, etc.The operating system my web server runs on is (include version):
Node.js 14 running on 64bit Amazon Linux 2/5.4.4My hosting provider, if applicable, is:
AWSI can login to a root shell on my machine (yes or no, or I don't know):
I can, but I use ec2-user and switch to root with sudo -sI'm using a control panel to manage my site (no, or provide the name and version of the control panel):
AWSThe version of my client is (e.g. output of
certbot --version
orcertbot-auto --version
if you're using Certbot):
1.11.0Thanks again!