Update renew-ssl.sh

This commit is contained in:
Pijus Kamandulis 2019-07-26 23:27:20 +03:00 committed by GitHub
parent bfb1fc9524
commit 070b795b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,12 @@
# Get certs
acme.sh --issue -d pikami.org -d mail.pikami.org --webroot /var/www/html/ --force
# Install cert nginx
acme.sh --install-cert -d pikami.org \
--key-file /etc/ssl/private/domain.key \
--fullchain-file /etc/ssl/certs/chained.pem
# Install cert postfix
cp /etc/ssl/certs/chained.pem /etc/postfix/chained.pem
cp /etc/ssl/private/domain.key /etc/postfix/domain.key
# Reload services
service nginx reload
service postfix reload