diff options
-rwxr-xr-x | bin/ldap2apache | 2 |
1 files changed, 2 insertions, 0 deletions
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 << ' <Files ~ "\.php$">' config << ' SSLOptions +StdEnvVars' config << ' </Files>' |