Skip to content

Commit 8f2df79

Browse files
ticklejwigalic
authored andcommitted
Added ssl_protocol parameter to apache::mod::ssl
makes it easier to fix things like POODLE
1 parent a31f00e commit 8f2df79

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ Installs Apache SSL capabilities and uses the ssl.conf.erb template. These are t
710710
class { 'apache::mod::ssl':
711711
ssl_compression => false,
712712
ssl_options => [ 'StdEnvVars' ],
713+
ssl_protocol => 'all -SSLv2 -SSLv3',
713714
}
714715
```
715716

manifests/mod/ssl.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
$ssl_compression = false,
33
$ssl_options = [ 'StdEnvVars' ],
44
$ssl_cipher = 'HIGH:MEDIUM:!aNULL:!MD5',
5+
$ssl_protocol = [ 'all', '-SSLv2', '-SSLv3' ],
56
$apache_version = $::apache::apache_version,
67
$package_name = undef,
78
) {

templates/mod/ssl.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
SSLCryptoDevice builtin
2222
SSLHonorCipherOrder On
2323
SSLCipherSuite <%= @ssl_cipher %>
24-
SSLProtocol all -SSLv2 -SSLv3
24+
SSLProtocol <%= @ssl_protocol.compact.join(' ') %>
2525
<% if @ssl_options -%>
2626
SSLOptions <%= @ssl_options.compact.join(' ') %>
2727
<% end -%>

0 commit comments

Comments
 (0)