smst-wp-site/swag/etc/letsencrypt/renewal-hooks/deploy/10-default

9 lines
303 B
Plaintext
Raw Permalink Normal View History

2023-05-24 01:43:13 +00:00
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
cd /config/keys/letsencrypt || exit 1
openssl pkcs12 -export -out privkey.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem -passout pass:
sleep 1
cat {privkey,fullchain}.pem >priv-fullchain-bundle.pem
chown -R abc:abc /config/etc/letsencrypt