Letsencrypt: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
Zeile 4: | Zeile 4: | ||
*wget https://dl.eff.org/certbot-auto | *wget https://dl.eff.org/certbot-auto | ||
*chmod a+x certbot-auto | *chmod a+x certbot-auto | ||
+ | *test -d /etc/apache2/ssl || mkdir /etc/apache2/ssl | ||
+ | *cd /etc/apach2/ssl | ||
+ | *wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem | ||
=Real Install= | =Real Install= |
Version vom 12. März 2017, 15:55 Uhr
Install
- pip install --upgrade setuptools
- cd /usr/local/sbin
- wget https://dl.eff.org/certbot-auto
- chmod a+x certbot-auto
- test -d /etc/apache2/ssl || mkdir /etc/apache2/ssl
- cd /etc/apach2/ssl
- wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem
Real Install
- certbot-auto certonly
Dry Run
- certbot-auto renew --dry-run
- /usr/local/sbin/certbot-auto renew --no-self-upgrade --dry-run --force-renewal --pre-hook "systemctl stop apache2.service" --post-hook "systemctl start apache2.service
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
- /usr/local/sbin/certbot-auto certonly -n --apache -d www.xxxx-xx.de --post-hook --post-hook "service apache2 start"
systemctl
- /usr/local/sbin/certbot-auto renew --no-self-upgrade --pre-hook "systemctl stop apache2.service" --post-hook "systemctl start apache2.service
Don't forget to Backup this Directory because there are you Accountdata
- /etc/letsencrypt