Assert that ciphers are not weak.

This commit is contained in:
Andy Brody 2017-02-18 22:36:13 -05:00
parent 824b4d95e5
commit a97ccae7f0
1 changed files with 5 additions and 0 deletions

View File

@ -1131,6 +1131,11 @@ describe RestClient::Request, :include_helpers do
@request.send(:transmit, @uri, 'req', 'payload')
end
it 'should not have weak default ciphers' do
expect(OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.fetch(:ciphers)).not_to \
equal("ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW")
end
# </ssl>
end