Letsencrypt: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
Zeile 11: | Zeile 11: | ||
=Cron Examples= | =Cron Examples= | ||
+ | ==restart service== | ||
*/usr/local/sbin/certbot-auto renew --quiet --no-self-upgrade --post-hook "service apache2 restart" >> /var/log/letsencrypt.log 2>&1 | */usr/local/sbin/certbot-auto renew --quiet --no-self-upgrade --post-hook "service apache2 restart" >> /var/log/letsencrypt.log 2>&1 | ||
+ | ==stop and start service== | ||
*/usr/local/sbin/certbot-auto renew --quiet --no-self-upgrade --pre-hook "service apache2 stop" --post-hook "service apache2 start" >> /var/log/letsencrypt.log 2>&1 | */usr/local/sbin/certbot-auto renew --quiet --no-self-upgrade --pre-hook "service apache2 stop" --post-hook "service apache2 start" >> /var/log/letsencrypt.log 2>&1 | ||
+ | *==specified domain== | ||
+ | *certbot-auto certonly -n --apache -d www.xxxx-xx.de --post-hook --post-hook "service apache2 start" | ||
=Links= | =Links= | ||
*https://certbot.eff.org/docs/using.html | *https://certbot.eff.org/docs/using.html |
Version vom 10. März 2017, 16:04 Uhr
Install
- cd /usr/local/sbin
- wget https://dl.eff.org/certbot-auto
- chmod a+x certbot-auto
Real Install
- certbot-auto certonly
Dry Run
- certbot-auto renew --dry-run
Cron Examples
restart service
- /usr/local/sbin/certbot-auto renew --quiet --no-self-upgrade --post-hook "service apache2 restart" >> /var/log/letsencrypt.log 2>&1
stop and start service
- /usr/local/sbin/certbot-auto renew --quiet --no-self-upgrade --pre-hook "service apache2 stop" --post-hook "service apache2 start" >> /var/log/letsencrypt.log 2>&1
- ==specified domain==
- certbot-auto certonly -n --apache -d www.xxxx-xx.de --post-hook --post-hook "service apache2 start"