File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -183,8 +183,12 @@ def validate_params(ssl_version, cipher)
183
183
unless @supported_versions . include? ssl_version
184
184
raise StandardError , "SSL Version must be one of: #{ @supported_versions . to_s } "
185
185
end
186
- unless OpenSSL ::SSL ::SSLContext . new ( ssl_version ) . ciphers . flatten . include? cipher
187
- raise StandardError , "Must be a valid SSL Cipher for #{ version } !"
186
+ begin
187
+ unless OpenSSL ::SSL ::SSLContext . new ( ssl_version ) . ciphers . flatten . include? cipher
188
+ raise StandardError , "Must be a valid SSL Cipher for #{ version } !"
189
+ end
190
+ rescue
191
+ raise StandardError , "Your OS hates freedom! Your OpenSSL libs are compiled without SSLv2 support!"
188
192
end
189
193
end
190
194
Original file line number Diff line number Diff line change 55
55
56
56
context ":rejected should be returned if" do
57
57
it "scans a server that doesn't support the supplied SSL version" do
58
- subject . test_cipher ( :SSLv2 , "DES-CBC3-MD5 " ) . should == :rejected
58
+ subject . test_cipher ( :SSLv3 , "DES-CBC-SHA " ) . should == :rejected
59
59
end
60
60
61
61
it "scans a server that doesn't support the cipher" do
72
72
73
73
context "when retrieving the cert" do
74
74
it "should return nil if it can't connect" do
75
- subject . get_cert ( :SSLv2 , "DES-CBC3-MD5 " ) . should == nil
75
+ subject . get_cert ( :SSLv3 , "DES-CBC-SHA " ) . should == nil
76
76
end
77
77
78
78
it "should return an X509 cert if it can connect" do
You can’t perform that action at this time.
0 commit comments