letsencrypt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| letsencrypt [2016/05/09 21:28] – [Letsencrypt] 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 22: | Line 26: | ||
| <code ini sample_config> | <code ini sample_config> | ||
| # Domain which you are trying to get certificate for; | # Domain which you are trying to get certificate for; | ||
| + | # multiple domain like aliases can be saperated by comma | ||
| + | # e.g. domains = wiki.k2patel.in, | ||
| domains = wiki.k2patel.in | domains = wiki.k2patel.in | ||
| Line 54: | Line 60: | ||
| </ | </ | ||
| + | |||
| + | SSL Configuration | ||
| + | <code conf ssl.conf> | ||
| + | ssl on; | ||
| + | ssl_certificate_key / | ||
| + | ssl_certificate / | ||
| + | ssl_trusted_certificate / | ||
| + | </ | ||
| + | ==== Apache Configuration ==== | ||
| + | So each domain only need to redirect to HTTPS if URL requested is from acme. | ||
| + | |||
| + | <code conf domain.conf> | ||
| + | RewriteEngine On | ||
| + | RewriteCond %{REQUEST_URI} !^/ | ||
| + | RewriteCond %{HTTPS} off | ||
| + | RewriteRule ^(.*)$ https:// | ||
| + | </ | ||
| + | |||
| + | |||
| + | SSL configuration | ||
| + | <code conf ssl.conf> | ||
| + | SSLEngine on | ||
| + | SSLCertificateFile | ||
| + | SSLCertificateKeyFile | ||
| + | SSLCACertificatePath | ||
| + | SSLCertificateChainFile "/ | ||
| + | </ | ||
| ==== Cron setup ==== | ==== Cron setup ==== | ||
| Now i have script which run every 11 week. | Now i have script which run every 11 week. | ||
letsencrypt.1462829331.txt.gz · Last modified: 2020/08/10 02:30 (external edit)
