From 5eef3088cbdc6c095719aa1bea7a1369b51514b5 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Fri, 07 Aug 2015 14:33:33 +0200
Subject: [PATCH] Support SSL-Cert per Domain (SNI)

---
 hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm b/hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm
index b98de63..e4fdd2d 100644
--- a/hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm
+++ b/hsarback/src/de/hsadmin/mods/dom/apache-vhost.vm
@@ -90,10 +90,9 @@
 #end    
 
     SSLEngine On
-    SSLCertificateFile /etc/apache2/pems/default.pem
-    SSLCertificateChainFile /etc/apache2/pems/default.chain.pem
-    SSLCertificateFile /etc/apache2/pems/${pac.name}.pem
-    SSLCertificateChainFile /etc/apache2/pems/${pac.name}.chain.pem
+    SSLCertificateFile /etc/apache2/pems-enabled/${dom.user.name}/${dom.name}.crt
+    SSLCertificateKeyFile /etc/apache2/pems-enabled/${dom.user.name}/${dom.name}.key
+    SSLCertificateChainFile /etc/apache2/pems-enabled/${dom.user.name}/${dom.name}.chain
        
     DocumentRoot /home/doms/${dom.name}/htdocs-ssl
 

--
Gitblit v1.9.3