From 5227621b9d8e43e32146bf9b7166e690c6f28c91 Mon Sep 17 00:00:00 2001 From: Simon Hoenscheid Date: Thu, 8 Jun 2023 23:05:56 +0200 Subject: [PATCH] fix ssl_ciphers array behavior --- templates/vhost/_ssl.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/vhost/_ssl.erb b/templates/vhost/_ssl.erb index 89a264d50f..4fed7b9e19 100644 --- a/templates/vhost/_ssl.erb +++ b/templates/vhost/_ssl.erb @@ -13,7 +13,11 @@ SSLProtocol <%= [@ssl_protocol].flatten.compact.join(' ') %> <%- end -%> <%- if @ssl_cipher -%> + <%- if @ssl_cipher.kind_of?(String) -%> SSLCipherSuite <%= @ssl_cipher %> + <%- else -%> + SSLCipherSuite <%= @ssl_cipher.flatten.compact.join(':') %> + <%- end -%> <%- end -%> <%- if not @ssl_honorcipherorder.nil? -%> SSLHonorCipherOrder <%= scope.call_function('apache::bool2httpd', [@_ssl_honorcipherorder]) %>