mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 10:19:34 +00:00
15 lines
519 B
Bash
Executable File
15 lines
519 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
cd /etc/nginx/ssl
|
|
echo >> acme_tiny.log
|
|
date >> acme_tiny.log
|
|
email=$(grep "\"email\":" /opt/labca/data/config.json | grep -v " {" | cut -d ":" -f 2 | sed -e "s/[\", ]*//g")
|
|
CONTACT="mailto:$email"
|
|
python3 /opt/labca/acme_tiny.py --account-key ./account.key --csr ./domain.csr --contact $CONTACT --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
|