This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
letsencrypt [2016/08/26 12:49] ian |
letsencrypt [2018/03/02 17:03] ian |
||
---|---|---|---|
Line 21: | Line 21: | ||
</ | </ | ||
- | 2. Add a monthly | + | 2. Add a weekly |
< | < | ||
Line 30: | Line 30: | ||
logger " | logger " | ||
- | ' >> /etc/cron.monthly/ | + | ' >> /etc/cron.weekly/ |
- | # chmod u+x /etc/cron.monthly/ | + | # chmod u+x /etc/cron.weekly/ |
</ | </ | ||
Line 37: | Line 37: | ||
< | < | ||
- | / | + | / |
</ | </ | ||
Line 50: | Line 50: | ||
</ | </ | ||
- | 4. Add your last letsencrypt certonly command to the cron.monthly shell script | + | 4. < |
- | + | echo '/ | |
- | < | + | |
- | echo "!?certonly?" >> /etc/cron.monthly/ | + | |
</ | </ | ||
Line 71: | Line 69: | ||
ServerAlias www.braindump.ca braindump.mrzesty.net | ServerAlias www.braindump.ca braindump.mrzesty.net | ||
+ | DocumentRoot /var/www/ | ||
RewriteEngine On | RewriteEngine On | ||
- | | + | |
+ | RewriteRule | ||
</ | </ | ||
Line 84: | Line 84: | ||
</ | </ | ||
- | 6. You can repeat steps 4-6 for any additional SSL certificates for other public sites on the server. | + | 6. You can repeat steps 5-6 for any additional SSL certificates for other public sites on the server. |
- | **/ | + | **/ |
< | < | ||
#!/bin/bash | #!/bin/bash | ||
Line 94: | Line 94: | ||
logger " | logger " | ||
- | /usr/local/letsencrypt/letsencrypt-auto certonly --renew-by-default | + | /usr/local/sbin/certbot-auto renew --deploy-hook " |
- | / | + | |
- | + | ||
- | service | + | |
logger "End: $0" | logger "End: $0" | ||
</ | </ | ||