Skip to content

Commit

Permalink
Add support for the Apache SSLProxyMachineCertificateFile directive w…
Browse files Browse the repository at this point in the history
…hich allows the apache reverse proxy to use a client certificate to authenticate to its upstream
  • Loading branch information
holtwilkins committed Sep 2, 2015
1 parent a34f171 commit 6e05f67
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2898,6 +2898,17 @@ Sets the [SSLVerifyDepth](http://httpd.apache.org/docs/current/mod/mod_ssl.html#
}
~~~

##### `ssl_proxy_machine_cert`

Sets the [SSLProxyMachineCertificateFile](http://httpd.apache.org/docs/current/mod/mod_ssl.html#sslproxymachinecertificatefile) directive, which specifies an all-in-one file where you keep the certs and keys used for this server to authenticate itself to remote servers. This file should be a concatenation of the PEM-encoded certificate files in order of preference. Defaults to 'undef'.

~~~ puppet
apache::vhost { 'sample.example.net':
ssl_proxy_machine_cert => '/etc/httpd/ssl/client_certificate.pem',
}
~~~

##### `ssl_options`

Sets the [SSLOptions](http://httpd.apache.org/docs/current/mod/mod_ssl.html#ssloptions) directive, which configures various SSL engine run-time options. This is the global setting for the given vhost and can be a string or an array. Defaults to 'undef'.
Expand Down
2 changes: 2 additions & 0 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
$ssl_honorcipherorder = undef,
$ssl_verify_client = undef,
$ssl_verify_depth = undef,
$ssl_proxy_machine_cert = undef,
$ssl_options = undef,
$ssl_openssl_conf_cmd = undef,
$ssl_proxyengine = false,
Expand Down Expand Up @@ -738,6 +739,7 @@
# - $ssl_honorcipherorder
# - $ssl_verify_client
# - $ssl_verify_depth
# - $ssl_proxy_machine_cert
# - $ssl_options
# - $ssl_openssl_conf_cmd
# - $apache_version
Expand Down
3 changes: 3 additions & 0 deletions templates/vhost/_ssl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
<%- if @ssl_verify_depth -%>
SSLVerifyDepth <%= @ssl_verify_depth %>
<%- end -%>
<%- if @ssl_proxy_machine_cert -%>
SSLProxyMachineCertificateFile "<%= @ssl_proxy_machine_cert %>"
<%- end -%>
<%- if @ssl_options -%>
SSLOptions <%= Array(@ssl_options).join(' ') %>
<%- end -%>
Expand Down

0 comments on commit 6e05f67

Please sign in to comment.