119a2a36ed
Previously, running docker-compose up -d certbot would overwrite the previous certificate stored in /var/certs Now: the certificates will be stored with the filename containing domain name
8 lines
281 B
Bash
8 lines
281 B
Bash
#!/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/"$CN"-cert1.pem
|
|
cp /etc/letsencrypt/archive/"$CN"/privkey1.pem /var/certs/"$CN"-privkey1.pem
|
|
|