Don't enable a chain cert if contents empty
We need to also test for site_ssl_chain_file_contents being an empty string, because in an ERB template (and for Ruby in general) the empty string has a boolean true value. Change-Id: I9767b606757a911e76e066d35c812f4988e0142b
This commit is contained in:
parent
3bbc6184ec
commit
47593a7970
|
@ -21,7 +21,7 @@ NameVirtualHost <%= @vhost_name %>:443
|
|||
SSLProtocol All -SSLv2 -SSLv3
|
||||
SSLCertificateFile <%= @site_ssl_cert_file %>
|
||||
SSLCertificateKeyFile <%= @site_ssl_key_file %>
|
||||
<% if @site_ssl_chain_file_contents %>
|
||||
<% if @site_ssl_chain_file_contents != '' %>
|
||||
SSLCertificateChainFile <%= @site_ssl_chain_file %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue