diff options
author | Jonas Smedegaard <dr@jones.dk> | 2022-03-26 13:58:59 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2022-03-26 13:58:59 +0100 |
commit | b4927ed55f5b8b94fef2407162d57b3832809522 (patch) | |
tree | cdad29607aacdc0d0ac37191a179ca6675c92277 /apache2/conf-available | |
parent | 545cb9599721a6f277c70babeaa2a0acbf974c94 (diff) |
update snippet local-tls to use lacme paths unless _TLS_USE_DEHYDRATED is set
Diffstat (limited to 'apache2/conf-available')
-rw-r--r-- | apache2/conf-available/local-tls.conf | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apache2/conf-available/local-tls.conf b/apache2/conf-available/local-tls.conf index 12e2c4a..b921c2e 100644 --- a/apache2/conf-available/local-tls.conf +++ b/apache2/conf-available/local-tls.conf @@ -8,8 +8,14 @@ <IfDefine _TLS_HOST> Define __TLS_CERT_CHAIN Define __TLS_KEY - Define _TLS_CERT_CHAIN /var/lib/dehydrated/certs/${_TLS_HOST}/fullchain.pem - Define _TLS_KEY /var/lib/dehydrated/certs/${_TLS_HOST}/privkey.pem + <IfDefine _TLS_USE_DEHYDRATED> + Define _TLS_CERT_CHAIN /var/lib/dehydrated/certs/${_TLS_HOST}/fullchain.pem + Define _TLS_KEY /var/lib/dehydrated/certs/${_TLS_HOST}/privkey.pem + </If> + <IfDefine !_TLS_USE_DEHYDRATED> + Define _TLS_CERT_CHAIN /etc/ssl/shared/${_TLS_HOST}.chain.pem + Define _TLS_KEY /etc/ssl/private/${_TLS_HOST}.key + </If> </IfDefine> </IfDefine> |