letsencrypt-install-elasticbeanstalk-single-instance
letsencrypt-install-elasticbeanstalk-single-instance copied to clipboard
How config letsencrypt ssl for www domain?
I configured SSL for domain.com, it OK. (LE_SSL_DOMAIN = domain.com) but when i run www.domain.com, browser error: "Your connection is not private".
So, how to configure SSL simultaneously for domain.com and www.domain.com?
Thank you!
My solution:
sudo ./certbot-auto certonly -d "$LE_SSL_DOMAIN" --agree-tos --email "$LE_EMAIL" --webroot --webroot-path /var/app/current"$DOCUMENT_ROOT" --debug --non-interactive --renew-by-default
=> Update:
sudo ./certbot-auto certonly --apache -d "$LE_SSL_DOMAIN" -d "www.$LE_SSL_DOMAIN" --agree-tos --email "$LE_EMAIL" --debug --non-interactive --renew-by-default
Hi @khacnha did this work for you? How did you set the auto renew to work for both?
Thanks
@finlamit Renewal renewal automatically renewed each week with cronjob. It will apply to both if you change as I mentioned: https://github.com/tomyates/letsencrypt-install-elasticbeanstalk-single-instance/blob/master/.ebextensions/9-ssl-letsencrypt-single-instance.config#L48