mirror of https://github.com/pikami/sysadmin.git
Update renew-ssl.sh
This commit is contained in:
parent
bfb1fc9524
commit
070b795b9f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue