Browse Source

Test supported ciphers

new-scoring
aeris 2 years ago
parent
commit
c1241eae97
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      spec/cryptcheck/tls/server_spec.rb

+ 9
- 0
spec/cryptcheck/tls/server_spec.rb View File

@@ -131,6 +131,15 @@ describe CryptCheck::Tls::Server do
end
end

describe '#supported_ciphers' do
it 'must detect supported cipher' do
ciphers = server.supported_ciphers
.map { |k, v| [k.to_sym, v.keys.collect(&:name)] }
.to_h[:TLSv1_2]
expect(ciphers).to match_array %w(ECDHE-ECDSA-AES128-SHA)
end
end

describe '#supported_curves' do
it 'must detect no supported curves' do
s = server :rsa, ciphers: %w(AES128-SHA)

Loading…
Cancel
Save