Replace acme_tiny.py with certbot as ACME client

This commit is contained in:
Arjan H
2025-05-31 11:21:08 +02:00
parent 26887b7f96
commit 273b2b83ff
12 changed files with 47 additions and 241 deletions

View File

@@ -83,6 +83,15 @@ main() {
docker ps &>/dev/null || install_docker
# Use python 3.10 to prevent warnings from certbot
add-apt-repository -y ppa:deadsnakes/ppa
apt update
apt install -y python3.10-venv
python3.10 -m venv /opt/certbot
/opt/certbot/bin/pip install --upgrade pip
/opt/certbot/bin/pip install certbot
ln -sf /opt/certbot/bin/certbot /usr/bin/certbot
[ -e /etc/nginx/ssl/labca_cert.pem ] || selfsigned_cert
renew_near_expiry