blackbirdchess-docker-dev/certbot/run-certbot.sh

7 lines
268 B
Bash
Raw Normal View History

2017-03-17 08:36:00 +01:00
#!/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