From c96e27d244663f22c4b04520ed3b62824ad6c099 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 18 Mar 2013 16:29:48 +0000 Subject: Include chainfile if exists for http ssl git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@597 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- bin/ldap2apache | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ldap2apache b/bin/ldap2apache index b77404b..a444048 100755 --- a/bin/ldap2apache +++ b/bin/ldap2apache @@ -182,6 +182,7 @@ clients.each{ |c| if ssl crtfile = "/etc/ssl/certs/apache-#{server_name}.pem" + chainfile = "/etc/ssl/certs/apache-#{server_name}-chain.pem" keyfile = "/etc/ssl/private/apache-#{server_name}.key" STDERR.puts "Warning: #{crtfile} does not exist" unless FileTest.exists?(crtfile) STDERR.puts "Warning: #{keyfile} does not exist" unless FileTest.exists?(keyfile) @@ -190,6 +191,7 @@ clients.each{ |c| config << " SSLEngine on" config << " SSLCertificateFile #{crtfile}" config << " SSLCertificateKeyFile #{keyfile}" + config << " SSLCertificateChainFile #{chainfile}" if FileTest.exists?(chainfile) config << ' ' config << ' SSLOptions +StdEnvVars' config << ' ' -- cgit v1.2.3