This script is one to accept a list of domains and renew/create the certs for them, and then copy the certs into a designated folder
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brandon 8f461a5e7f Fixed formatting 3 weeks ago
LICENSE Initial commit 3 weeks ago
README.md Fixed formatting 3 weeks ago
le-renewcert-dodns.sh Add actual script 3 weeks ago

README.md

le-renewcert-dodns

This script is one to accept a list of domains and renew/create the certs for them, and then copy the certs into a designated folder

Syntax

This should be run as root

./le-renewcert-dodns.sh <filename1> <username> <filename2> <container-name>

filename1 = Absolute path of file containing a list of domains to renew/create certs for

username = the username used for docker-compose file stuffs

filename2 = Absolute path of the .ini file containing the digitalocean API key to be used for the DNS challenge

container-name = the name of the container in the docker-compose.yml file to be restarted to use the newly created certs

Usage

This script expects certbot and docker-compose to already be installed, the docker-compose.yml file to be in the top level of the docker-compose usernames home folder, the certs you wish to use for your nginx-proxy to be going in the docker-compose user’s certs folder.

See here for how to get your API key and here for how to create the .ini file it’ll be stored in as well as the permissions required to be applied on that file.