This is the certbot configuration I'm using.
It relies on the manual plugin.
- HTTP-01
- Manual DNS via lima-city
git clone https://github.com/axelrindle/certbot.git
cd certbot
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Configure all challenges you requested certificates with.
E.g if all of your certificates were requesting using the DNS-01 challenge, you may only configure the DNS challenge.
cp hooks/$CHALLENGE/common.sh.example hooks/$CHALLENGE/common.sh
The variables are required for copying the auth token via SSH to the webroot.
Activate the virtual environment whenever you want to work with your certificates.
If you want to copy your certificates to another (local or remote) location
afterwards, create a file named deploy.sh
and fill it with logic. It will
be called after a successful renewal.
Run the following command to obtain a new certificate:
certbot certonly \
--manual \
--preferred-challenges http \
-d <DOMAIN>
The certbot.sh
script can be used in cron for automatic renewal.
- Certificate requesting