Accept an array for cache_tls_allowed_ciphers
The parameter accepts openssl cipher list. Accept an array value and convert it to the appropriate format to use the native type for easier handling. Change-Id: I104225e0153ebe7fad611b463d48f904960a8a7a
This commit is contained in:
parent
cd5216f5a5
commit
dfce4a9d13
@ -239,8 +239,12 @@ tls_context.load_cert_chain('<%= @cache_tls_certfile %>', '<%= @cache_tls_keyfil
|
|||||||
tls_context.load_cert_chain('<%= @cache_tls_certfile %>')
|
tls_context.load_cert_chain('<%= @cache_tls_certfile %>')
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% if @cache_allowed_ciphers -%>
|
<% if @cache_allowed_ciphers -%>
|
||||||
|
<% if @cache_allowed_ciphers.kind_of?(Array) -%>
|
||||||
|
tls_context.set_ciphers('<%= @cache_tls_allowed_ciphers.join(":") %>')
|
||||||
|
<% else -%>
|
||||||
tls_context.set_ciphers('<%= @cache_tls_allowed_ciphers %>')
|
tls_context.set_ciphers('<%= @cache_tls_allowed_ciphers %>')
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
CACHES['default'].setdefault('OPTIONS', {})['tls_context'] = tls_context
|
CACHES['default'].setdefault('OPTIONS', {})['tls_context'] = tls_context
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user