letsencrypt-install-elasticbeanstalk-single-instance icon indicating copy to clipboard operation
letsencrypt-install-elasticbeanstalk-single-instance copied to clipboard

How config letsencrypt ssl for www domain?

Open khacnha opened this issue 6 years ago • 3 comments

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!

khacnha avatar Nov 20 '18 08:11 khacnha

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

khacnha avatar Nov 27 '18 03:11 khacnha

Hi @khacnha did this work for you? How did you set the auto renew to work for both?

Thanks

thelostpixel-web avatar Apr 25 '19 13:04 thelostpixel-web

@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

khacnha avatar Apr 26 '19 00:04 khacnha