2016-10-09 21:01:49 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
letsencrypt certonly --webroot -w /var/www/letsencrypt -d "$CN" --agree-tos --email "$EMAIL" --non-interactive --text
|
|
|
|
|
2020-09-29 11:06:48 +05:30
|
|
|
cp /etc/letsencrypt/archive/"$CN"/cert1.pem /var/certs/"$CN"-cert1.pem
|
2020-12-22 16:27:31 +02:00
|
|
|
cp /etc/letsencrypt/archive/"$CN"/chain1.pem /var/certs/chain1.pem
|
|
|
|
cp /etc/letsencrypt/archive/"$CN"/fullchain1.pem /var/certs/fullchain1.pem
|
2020-09-29 11:06:48 +05:30
|
|
|
cp /etc/letsencrypt/archive/"$CN"/privkey1.pem /var/certs/"$CN"-privkey1.pem
|
|
|
|
|