Browse Source

Fix AEAD and weak key checks

new-scoring
aeris 3 years ago
parent
commit
e39b7670f1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/cryptcheck/tls/grade.rb

+ 2
- 2
lib/cryptcheck/tls/grade.rb View File

@@ -78,7 +78,7 @@ module CryptCheck
CHECKS = [
# Keys
[:dss_sign, Proc.new { |s| s.dss_sig? }, :critical],
[:weak_key, Proc.new { |s| %i(critical error warning).include? s.key.status } ],
[:weak_key, Proc.new { |s| %i(critical error warning) & [s.key.status] } ],

# DH
[:weak_dh, Proc.new { |s| (%i(critical error warning) & s.dh.collect(&:status).uniq).first } ],
@@ -114,7 +114,7 @@ module CryptCheck
[:ecdhe, Proc.new { |s| s.ecdhe? }, :good],
[:ecdhe_only, Proc.new { |s| s.ecdhe_only? }, :perfect],

[:aead, Proc.new { |s| s.aead_only? }, :good],
[:aead, Proc.new { |s| s.aead? }, :good],
#[:aead_only, Proc.new { |s| s.aead_only? }, :best],
]


Loading…
Cancel
Save