I have an Amazon EC2 instance using Ubuntu 16.04. I created the certificate using this command:
sudo certbot certonly --apache -w /var/www/html -d search.pickmybuilder.com.
The certificate is generated fine, but the non-matching name error is caused because it’s subject name uses Amazon’s private DNS name (ip-172-xx-xx-xxx.us-west-2.compute.internal) which does not match the public ip.
My search for an answer has been going on for days! Is there a way for the certificate to use something besides the private DNS, or is there a way to change the source on my Ubuntu instance where Let’s Encrypt selects this name?
Thanks for any help!
Here’s my output running this command:
sudo curl -v -L https://search.pickmybuilder.com
- Rebuilt URL to: https://search.pickmybuilder.com/
- Trying 220.127.116.11…
- Connected to search.pickmybuilder.com (18.104.22.168) …
server certificate verification OK
server certificate status verification SKIPPED
- SSL: certificate subject name (ip-172-xx-xx-xxx.us-west-2.compute.internal) does not match target host name ‘search.pickmybuilder.com’
- Closing connection 0