Last active
October 20, 2023 14:37
-
-
Save Bachsau/9213971a085cf3f55154ccec68411df2 to your computer and use it in GitHub Desktop.
Non-patronizing Certbot configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Certbot configuration by Bachsau | |
# System | |
max-log-backups = 0 | |
#no-random-sleep-on-renew = true | |
verbose = 1 | |
# CA settings | |
#server = https://acme-staging-v02.api.letsencrypt.org/directory | |
preferred-chain = ISRG Root X1 | |
# Account creation | |
#email = info@example.com | |
agree-tos = true | |
no-eff-email = true | |
# Installation | |
installer = null | |
disable-renew-updates = true | |
delete-after-revoke = true | |
deploy-hook = /etc/letsencrypt/deploy.sh | |
post-hook = invoke-rc.d apache2 reload | |
# Authentication | |
authenticator = dns-standalone | |
preferred-challenges = dns-01 | |
dns-standalone-propagation-seconds = 1 | |
# Key settings | |
key-type = rsa | |
rsa-key-size = 4096 | |
#elliptic-curve = secp384r1 | |
reuse-key = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
# Install certificates after creation (by Bachsau) | |
CERT_NAME=${RENEWED_LINEAGE##*/} | |
DESTFILE=/var/tls/${CERT_NAME}.pem | |
umask 0177 | |
cat "${RENEWED_LINEAGE}/privkey.pem" "${RENEWED_LINEAGE}/fullchain.pem" >"$DESTFILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment