Hello Let’s Encrypt community, I’m having some issues trying to get a certificate for an AWS EC2 Instance running Apache server. I’ve been following the instructions here:
But I run into issues as soon as I try to setup certbot. I’m using domain redirection since aws domain names are forbidden but I don’t know what I may be missing.
I ran this command: sudo certbot
It produced this output:
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for [mydomain.com]
http-01 challenge for [www.mydomain.com]
Waiting for verification…
Challenge failed for domain [mydomain.com]
Challenge failed for domain [www.mydomain.com]
http-01 challenge for [mydomain.com]
http-01 challenge for [www.mydomain.com]
Cleaning up challenges
Some challenges have failed.
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.
Hello @JuergenAuer, thanks for the quick response.
If I understood and did things correctly, this is the output:
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for example.com
http-01 challenge for www.example.com
Waiting for verification…
Challenge failed for domain example.com
Challenge failed for domain www.example.com
http-01 challenge for example.com
http-01 challenge for www.example.com
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: example.com
Type: connection
Detail: Fetching http://18.189.28.251: Invalid host in redirect
target “18.189.28.251”. Only domain names are supported, not IP
addresses
Domain: www.example.com
Type: connection
Detail: Fetching http://18.189.28.251: Invalid host in redirect
target “18.189.28.251”. Only domain names are supported, not IP
addresses
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. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
Let me know if this was your suggestion or I missunderstood you. Thank you!