letsencrypt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| letsencrypt [2018/09/25 14:34] – [Nginx configuration] k2patel | letsencrypt [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| But there is catch, You have to renew your certificated Often.\\ | But there is catch, You have to renew your certificated Often.\\ | ||
| Since they provided tool to do so, i don't think there is problem at all.\\ | Since they provided tool to do so, i don't think there is problem at all.\\ | ||
| + | |||
| + | One thing, i've noticed that on AWS, some how authentication using the webroot method fails.\\ | ||
| + | So i had to use http method, which works perfectly fine.\\ | ||
| + | But, renewal works without any issue using webroot.\\ | ||
| First install command line API tool. | First install command line API tool. | ||
| Line 56: | Line 60: | ||
| </ | </ | ||
| + | |||
| + | SSL Configuration | ||
| + | <code conf ssl.conf> | ||
| + | ssl on; | ||
| + | ssl_certificate_key / | ||
| + | ssl_certificate / | ||
| + | ssl_trusted_certificate / | ||
| + | </ | ||
| ==== Apache Configuration ==== | ==== Apache Configuration ==== | ||
| So each domain only need to redirect to HTTPS if URL requested is from acme. | So each domain only need to redirect to HTTPS if URL requested is from acme. | ||
| Line 64: | Line 76: | ||
| RewriteCond %{HTTPS} off | RewriteCond %{HTTPS} off | ||
| RewriteRule ^(.*)$ https:// | RewriteRule ^(.*)$ https:// | ||
| + | </ | ||
| + | |||
| + | |||
| + | SSL configuration | ||
| + | <code conf ssl.conf> | ||
| + | SSLEngine on | ||
| + | SSLCertificateFile | ||
| + | SSLCertificateKeyFile | ||
| + | SSLCACertificatePath | ||
| + | SSLCertificateChainFile "/ | ||
| </ | </ | ||
| ==== Cron setup ==== | ==== Cron setup ==== | ||
letsencrypt.1537886054.txt.gz · Last modified: 2020/08/10 02:30 (external edit)
