1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

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

View file

@ -1131,6 +1131,11 @@ describe RestClient::Request, :include_helpers do
@request.send(:transmit, @uri, 'req', 'payload') @request.send(:transmit, @uri, 'req', 'payload')
end 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> # </ssl>
end end