Create renew-ssl.sh

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

6
security/renew-ssl.sh Normal file
View File

@ -0,0 +1,6 @@
acme.sh --issue -d pikami.org -d mail.pikami.org --webroot /var/www/html/ --force
acme.sh --install-cert -d pikami.org \
--key-file /etc/ssl/private/domain.key \
--fullchain-file /etc/ssl/certs/chained.pem
cp /etc/ssl/certs/chained.pem /etc/postfix/chained.pem
cp /etc/ssl/private/domain.key /etc/postfix/domain.key