|
1 |
| -<%- if @ssl -%> |
| 1 | +<% if @ssl -%> |
2 | 2 |
|
3 | 3 | ## SSL directives
|
4 | 4 | SSLEngine on
|
|
7 | 7 | SSLCertificateKeyFile "<%= @ssl_key %>"
|
8 | 8 | <%- end -%>
|
9 | 9 | <%- if @ssl_chain -%>
|
10 |
| - SSLCertificateChainFile "<%= @ssl_chain %>" |
| 10 | + SSLCertificateChainFile "<%= @ssl_chain %>" |
11 | 11 | <%- end -%>
|
12 | 12 | <%- if @ssl_protocol -%>
|
13 | 13 | SSLProtocol <%= [@ssl_protocol].flatten.compact.join(' ') %>
|
14 | 14 | <%- end -%>
|
15 | 15 | <%- if @ssl_cipher -%>
|
16 | 16 | <%- if @ssl_cipher.kind_of?(String) -%>
|
17 |
| - SSLCipherSuite <%= @ssl_cipher %> |
| 17 | + SSLCipherSuite <%= @ssl_cipher %> |
18 | 18 | <%- elsif @ssl_cipher.kind_of?(Hash) -%>
|
19 | 19 | <%- @ssl_cipher.map do |protocol, cipher| -%>
|
20 |
| - SSLCipherSuite <%= protocol %> <%= cipher%> |
| 20 | + SSLCipherSuite <%= protocol %> <%= cipher%> |
21 | 21 | <%- end -%>
|
22 | 22 | <%- else -%>
|
23 |
| - SSLCipherSuite <%= @ssl_cipher.flatten.compact.join(':') %> |
| 23 | + SSLCipherSuite <%= @ssl_cipher.flatten.compact.join(':') %> |
24 | 24 | <%- end -%>
|
25 | 25 | <%- end -%>
|
26 | 26 | <%- if not @ssl_honorcipherorder.nil? -%>
|
27 |
| - SSLHonorCipherOrder <%= scope.call_function('apache::bool2httpd', [@_ssl_honorcipherorder]) %> |
| 27 | + SSLHonorCipherOrder <%= scope.call_function('apache::bool2httpd', [@_ssl_honorcipherorder]) %> |
28 | 28 | <%- end -%>
|
29 | 29 | <%- if @ssl_verify_client -%>
|
30 |
| - SSLVerifyClient <%= @ssl_verify_client %> |
31 |
| - <%- if @ssl_verify_depth -%> |
32 |
| - SSLVerifyDepth <%= @ssl_verify_depth %> |
33 |
| - <%- end -%> |
| 30 | + SSLVerifyClient <%= @ssl_verify_client %> |
| 31 | + <%- if @ssl_verify_depth -%> |
| 32 | + SSLVerifyDepth <%= @ssl_verify_depth %> |
| 33 | + <%- end -%> |
34 | 34 | <%- end -%>
|
35 | 35 | <%- if @ssl_certs_dir && @ssl_certs_dir != '' -%>
|
36 |
| - SSLCACertificatePath "<%= @ssl_certs_dir %>" |
| 36 | + SSLCACertificatePath "<%= @ssl_certs_dir %>" |
37 | 37 | <%- end -%>
|
38 | 38 | <%- if @ssl_ca -%>
|
39 |
| - SSLCACertificateFile "<%= @ssl_ca %>" |
| 39 | + SSLCACertificateFile "<%= @ssl_ca %>" |
40 | 40 | <%- end -%>
|
41 | 41 | <%- if @ssl_crl_path -%>
|
42 |
| - SSLCARevocationPath "<%= @ssl_crl_path %>" |
| 42 | + SSLCARevocationPath "<%= @ssl_crl_path %>" |
43 | 43 | <%- end -%>
|
44 | 44 | <%- if @ssl_crl -%>
|
45 |
| - SSLCARevocationFile "<%= @ssl_crl %>" |
| 45 | + SSLCARevocationFile "<%= @ssl_crl %>" |
46 | 46 | <%- end -%>
|
47 | 47 | <%- if @ssl_crl_check -%>
|
48 |
| - SSLCARevocationCheck <%= @ssl_crl_check %> |
| 48 | + SSLCARevocationCheck <%= @ssl_crl_check %> |
49 | 49 | <%- end -%>
|
50 | 50 | <%- if @ssl_options -%>
|
51 |
| - SSLOptions <%= Array(@ssl_options).join(' ') %> |
| 51 | + SSLOptions <%= Array(@ssl_options).join(' ') %> |
52 | 52 | <%- end -%>
|
53 | 53 | <%- if @ssl_openssl_conf_cmd -%>
|
54 |
| - SSLOpenSSLConfCmd <%= @ssl_openssl_conf_cmd %> |
| 54 | + SSLOpenSSLConfCmd <%= @ssl_openssl_conf_cmd %> |
55 | 55 | <%- end -%>
|
56 | 56 | <%- unless @ssl_stapling.nil? -%>
|
57 |
| - SSLUseStapling <%= scope.call_function('apache::bool2httpd', [@ssl_stapling]) %> |
| 57 | + SSLUseStapling <%= scope.call_function('apache::bool2httpd', [@ssl_stapling]) %> |
58 | 58 | <%- end -%>
|
59 | 59 | <%- if @ssl_stapling_timeout -%>
|
60 |
| - SSLStaplingResponderTimeout <%= @ssl_stapling_timeout %> |
| 60 | + SSLStaplingResponderTimeout <%= @ssl_stapling_timeout %> |
61 | 61 | <%- end -%>
|
62 | 62 | <%- unless @ssl_stapling_return_errors.nil? -%>
|
63 |
| - SSLStaplingReturnResponderErrors <%= scope.call_function('apache::bool2httpd', [@ssl_stapling_return_errors]) %> |
| 63 | + SSLStaplingReturnResponderErrors <%= scope.call_function('apache::bool2httpd', [@ssl_stapling_return_errors]) %> |
64 | 64 | <%- end -%>
|
65 | 65 | <%- if @ssl_user_name -%>
|
66 |
| - SSLUserName <%= @ssl_user_name %> |
| 66 | + SSLUserName <%= @ssl_user_name %> |
67 | 67 | <%- end -%>
|
68 |
| -<%- end -%> |
| 68 | +<% end -%> |
0 commit comments