Files
labca/renew
Arjan H 0ed9d8eac2 Build and use local docker images for docker-only setup (#41)
For now, the images are still built on the target machine for testing,
in the end they need to be built in a GitHub action.
2023-04-15 09:19:17 +02:00

13 lines
364 B
Bash
Executable File

#!/usr/bin/env bash
set -e
cd /etc/nginx/ssl
echo >> acme_tiny.log
date >> acme_tiny.log
python3 /opt/labca/acme_tiny.py --account-key ./account.key --csr ./domain.csr --acme-dir /var/www/html/.well-known/acme-challenge/ > domain_chain.crt 2> >(tee -a acme_tiny.log >&2) || exit 1
mv domain_chain.crt labca_cert.pem
cd /opt/boulder
docker-compose restart nginx