summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 15:17:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 15:17:13 +0000
commit80995a01138975f51b299bafb8f110f0dc2c5829 (patch)
treeb89133ba6ab5683896e6c71620337e4b238c8dfd /debian
parentAdding configuration file to rewrite http to https. (diff)
downloadapache2-80995a01138975f51b299bafb8f110f0dc2c5829.tar.xz
apache2-80995a01138975f51b299bafb8f110f0dc2c5829.zip
Adding configuration file for dehydrated ssl certificates.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/config-dir/conf-available/ssl-dehydrated.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/config-dir/conf-available/ssl-dehydrated.conf b/debian/config-dir/conf-available/ssl-dehydrated.conf
new file mode 100644
index 0000000..a51d5cd
--- /dev/null
+++ b/debian/config-dir/conf-available/ssl-dehydrated.conf
@@ -0,0 +1,12 @@
+# /etc/apache2/conf-available/ssl-dehydrated.conf
+
+<IfModule mod_ssl.c>
+ <IfFile /var/lib/dehydrated/certs/${HOSTNAME}/cert.pem>
+ SSLEngine on
+
+ SSLCertificateFile /var/lib/dehydrated/certs/${HOSTNAME}/cert.pem
+ SSLCertificateKeyFile /var/lib/dehydrated/certs/${HOSTNAME}/privkey.pem
+ SSLCertificateChainFile /var/lib/dehydrated/certs/${HOSTNAME}/chain.pem
+ SSLCACertificateFile /var/lib/dehydrated/certs/${HOSTNAME}/fullchain.pem
+ </IfFile>
+</IfModule>