Skip to content

Commit 754f843

Browse files
Merge pull request #2072 from AbelNavarro/ssl-proxy-machine-certificate-chain-file
Add ssl_proxy_machine_cert_chain param to vhost class
2 parents 23ca7e6 + c0d6464 commit 754f843

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

REFERENCE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9240,6 +9240,20 @@ apache::vhost { 'sample.example.net':
92409240

92419241
Default value: ``undef``
92429242

9243+
##### `ssl_proxy_machine_cert_chain`
9244+
9245+
Data type: `Any`
9246+
9247+
Sets the [SSLProxyMachineCertificateChainFile](https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslproxymachinecertificatechainfile)
9248+
directive, which specifies an all-in-one file where you keep the certificate chain for
9249+
all of the client certs in use. This directive will be needed if the remote server
9250+
presents a list of CA certificates that are not direct signers of one of the configured
9251+
client certificates. This referenced file is simply the concatenation of the various
9252+
PEM-encoded certificate files. Upon startup, each client certificate configured will be
9253+
examined and a chain of trust will be constructed.
9254+
9255+
Default value: `undef`
9256+
92439257
##### `ssl_proxy_check_peer_cn`
92449258

92459259
Data type: `Optional[Enum['on', 'off']]`

manifests/vhost.pp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,14 @@
16101610
# ssl_proxy_machine_cert => '/etc/httpd/ssl/client_certificate.pem',
16111611
# }
16121612
# ```
1613+
# @param ssl_proxy_machine_cert_chain
1614+
# Sets the [SSLProxyMachineCertificateChainFile](https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslproxymachinecertificatechainfile)
1615+
# directive, which specifies an all-in-one file where you keep the certificate chain for
1616+
# all of the client certs in use. This directive will be needed if the remote server
1617+
# presents a list of CA certificates that are not direct signers of one of the configured
1618+
# client certificates. This referenced file is simply the concatenation of the various
1619+
# PEM-encoded certificate files. Upon startup, each client certificate configured will be
1620+
# examined and a chain of trust will be constructed.
16131621
#
16141622
# @param ssl_proxy_check_peer_cn
16151623
# Sets the [SSLProxyCheckPeerCN](https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslproxycheckpeercn)
@@ -1744,6 +1752,7 @@
17441752
Optional[Enum['on', 'off']] $ssl_proxy_check_peer_name = undef,
17451753
Optional[Enum['on', 'off']] $ssl_proxy_check_peer_expire = undef,
17461754
$ssl_proxy_machine_cert = undef,
1755+
$ssl_proxy_machine_cert_chain = undef,
17471756
$ssl_proxy_cipher_suite = undef,
17481757
$ssl_proxy_protocol = undef,
17491758
$ssl_options = undef,
@@ -2491,6 +2500,7 @@
24912500
# - $ssl_proxy_check_peer_name
24922501
# - $ssl_proxy_check_peer_expire
24932502
# - $ssl_proxy_machine_cert
2503+
# - $ssl_proxy_machine_cert_chain
24942504
# - $ssl_proxy_protocol
24952505
if $ssl_proxyengine {
24962506
concat::fragment { "${name}-sslproxy":

templates/vhost/_sslproxy.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
<%- if @ssl_proxy_machine_cert -%>
2424
SSLProxyMachineCertificateFile "<%= @ssl_proxy_machine_cert %>"
2525
<%- end -%>
26+
<%- if @ssl_proxy_machine_cert_chain -%>
27+
SSLProxyMachineCertificateChainFile "<%= @ssl_proxy_machine_cert_chain %>"
28+
<%- end -%>
2629
<%- if @ssl_proxy_cipher_suite -%>
2730
SSLProxyCipherSuite <%= @ssl_proxy_cipher_suite %>
2831
<%- end -%>

0 commit comments

Comments
 (0)