certbot-scrypts/own/ssl_update

13 lines
340 B
Plaintext
Raw Normal View History

2018-05-07 20:25:38 +00:00
#!/bin/bash
#renew certs
lxc-attach -n c_proxy -- /opt/renewssl.sh
#copy certs
for i in `lxc-attach -n c_proxy -- ls /etc/letsencrypt/live/ | tail -n +2`; do
mkdir -p ./ssl_certs/$i
for j in privkey.pem fullchain.pem chain.pem cert.pem; do
lxc-attach -n c_proxy -- cat /etc/letsencrypt/live/$i/$j > ./ssl_certs/$i/$j
done
done