Created
October 9, 2017 21:39
-
-
Save erajuan/25df2f7c3c50b6e4a9a3345ac03bd1d2 to your computer and use it in GitHub Desktop.
Update Lets encription - ACME TINY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# renew cert | |
python /ssl/acme_tiny.py --account-key /ssl/account.key --csr /ssl/domain.csr --acme-dir /var/www/challenges/ > /ssl/signed.crt | |
# update chained.pem | |
cat /ssl/signed.crt /ssl/intermediate.pem > /ssl/chained.pem | |
# update dovecot keys | |
cp /ssl/chained.pem /etc/dovecot/dovecot.pem | |
cp /ssl/domain.key /etc/dovecot/private/dovecot.pem | |
# reload services | |
service nginx reload | |
service dovecot reload | |
service postfix reload | |
# renew | |
# 30 2 5 * * /ssl/renew_cert.sh renew >> /ssl/le-renew.log | |
# 30 3 20 * * /ssl/renew_cert.sh renew >> /ssl/le-renew.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment