I used certbot-auto to create ssl certificate for my web server running on AWS EX2 Fedora 23 server. When I access the https site, the browser is showing the following error:
www.xxxx.com uses an invalid security certificate. The certificate is not trusted because it is self-signed. The certificate is only valid for ip-10-0-0-29.us-west-2.compute.internal Error code: SEC_ERROR_UNKNOWN_ISSUER
So, it looks like the certificate is issued against the private IP. When I do the nslookup on the server, it is showing the same private IP, and the public IP is visible only through metadata.
How can I get the certificate issued against the public IP? Is there any way I can change the configuration?
PS: the command I used is: sudo ./certbot-auto --authenticator standalone --installer apache -w /var/www/html -d www…