My website is working for “jasonmirra.com” but is not working for “www.jasonmirra.com” even though the certificate I’m using specified both domains. What am I doing wrong?
My domain is: jasonmirra.com AND www.jasonmirra.com
I ran this command: sudo certbot certonly --standalone -d jasonmirra.com -d www.jasonmirra.com
It produced this output:
Do you want to expand and replace this existing certificate with the new
certificate?
(E)xpand/©ancel: E
Renewing an existing certificate
Performing the following challenges:
tls-sni-01 challenge for jasonmirra.com
http-01 challenge for www.jasonmirra.com
Waiting for verification…
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/jasonmirra.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/jasonmirra.com/privkey.pem
Your cert will expire on 2018-09-16. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew all of your certificates, run
“certbot renew”
My web server is (include version): Custom java webserver
The operating system my web server runs on is (include version): Ubuntu 16.04.4 LTS
My hosting provider, if applicable, is: AWS
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no