Better output for supported methods/ciphers

new-scoring
aeris 2017-01-22 20:05:21 +01:00
parent 199df56501
commit 3d12eaacea
1 changed files with 8 additions and 4 deletions

View File

@ -5,8 +5,12 @@ require 'bundler/setup'
require 'cryptcheck'
puts 'Supported methods'
puts OpenSSL::SSL::SSLContext::METHODS.select { |m| CryptCheck::Tls::Server::EXISTING_METHODS.include? m }.sort.join ' '
puts CryptCheck::Tls::Method::SUPPORTED.sort.collect(&:to_s).join ' '
supported = CryptCheck::Tls::Cipher.list
puts "#{supported.size} supported ciphers"
puts supported.collect { |c| c.colorize }.join "\n"
CryptCheck::Tls::Cipher.each do |method, ciphers|
puts
puts "#{ciphers.size} supported ciphers for #{method}"
ciphers.sort.each do |cipher|
puts " #{cipher}"
end
end