Skip to content

Commit

Permalink
(CAT-1281) - Support to add cipher with respective ssl protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramesh7 committed Aug 10, 2023
1 parent 7dc4d01 commit 30ae23e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/mod/ssl.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@
SSLStaplingReturnResponderErrors <%= scope.call_function('apache::bool2httpd', [@ssl_stapling_return_errors]) %>
<%- end -%>
SSLStaplingCache "shmcb:<%= @_stapling_cache %>"
<%- if @ssl_cipher.kind_of?(Hash) -%>
<%- @ssl_cipher.map do |protocol, cipher| -%>
SSLCipherSuite <%= protocol %> <%= cipher %>
<%- end -%>
<%- else -%>
SSLCipherSuite <%= @ssl_cipher %>
<%- end -%>
<% if not @ssl_protocol.empty? -%>
SSLProtocol <%= @ssl_protocol.compact.join(' ') %>
<% end -%>
Expand Down
4 changes: 4 additions & 0 deletions templates/vhost/_ssl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<%- if @ssl_cipher -%>
<%- if @ssl_cipher.kind_of?(String) -%>
SSLCipherSuite <%= @ssl_cipher %>
<%- elsif @ssl_cipher.kind_of?(Hash) -%>
<%- @ssl_cipher.map do |protocol, cipher| -%>
SSLCipherSuite <%= protocol %> <%= cipher%>
<%- end -%>
<%- else -%>
SSLCipherSuite <%= @ssl_cipher.flatten.compact.join(':') %>
<%- end -%>
Expand Down

0 comments on commit 30ae23e

Please sign in to comment.