File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 727727 $ssl_protocol = []
728728 $ssl_cipher = ' PROFILE=SYSTEM'
729729 $ssl_proxy_cipher_suite = ' PROFILE=SYSTEM'
730+ } elsif $facts [' os' ][' family' ] == ' Debian' {
731+ $ssl_protocol = [' all' , ' -SSLv3' ]
732+ $ssl_cipher = ' HIGH:!aNULL'
733+ $ssl_proxy_cipher_suite = undef
730734 } else {
731735 $ssl_protocol = [' all' , ' -SSLv2' , ' -SSLv3' ]
732736 $ssl_cipher = ' HIGH:MEDIUM:!aNULL:!MD5:!RC4:!3DES'
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ class { 'apache':
2525 it { is_expected . to be_file }
2626 if os [ :family ] . include? ( 'redhat' ) && os [ :release ] . to_i >= 8
2727 it { is_expected . not_to contain 'SSLProtocol' }
28+ elsif [ 'debian' , 'ubuntu' ] . include? ( os [ :family ] )
29+ it { is_expected . to contain 'SSLProtocol all -SSLv3' }
2830 else
2931 it { is_expected . to contain 'SSLProtocol all -SSLv2 -SSLv3' }
3032 end
Original file line number Diff line number Diff line change 6969 it { is_expected . to contain_class ( 'apache::params' ) }
7070 it { is_expected . to contain_apache__mod ( 'ssl' ) }
7171 it { is_expected . not_to contain_package ( 'libapache2-mod-ssl' ) }
72- it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{SSLProtocol all -SSLv2 - SSLv3} ) }
72+ it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{SSLProtocol all -SSLv3} ) }
7373 end
7474 context 'on a FreeBSD OS' do
7575 include_examples 'FreeBSD 9'
You can’t perform that action at this time.
0 commit comments