Added certbot container

This commit is contained in:
philtrep
2016-10-09 21:01:49 -04:00
parent 5e9ae56a7f
commit 4030cc2f26
6 changed files with 31 additions and 0 deletions

6
certbot/run-certbot.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
letsencrypt certonly --webroot -w /var/www/letsencrypt -d "$CN" --agree-tos --email "$EMAIL" --non-interactive --text
cp /etc/letsencrypt/archive/"$CN"/cert1.pem /var/certs/cert1.pem
cp /etc/letsencrypt/archive/"$CN"/privkey1.pem /var/certs/privkey1.pem