You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
495 B
20 lines
495 B
8 years ago
|
#!/usr/bin/env ruby
|
||
|
$:.unshift 'lib'
|
||
|
require 'logging'
|
||
|
require 'cryptcheck'
|
||
|
|
||
|
name = ARGV[0] || 'index'
|
||
|
file = ::File.join 'output', "#{name}.yml"
|
||
|
|
||
|
if ::File.exist? file
|
||
|
::CryptCheck::Tls::Https.analyze_from_file "output/#{name}.yml", "output/#{name}.html"
|
||
|
else
|
||
|
::Logging.logger.root.appenders = ::Logging.appenders.stdout
|
||
|
::Logging.logger.root.level = :warn
|
||
|
|
||
|
server = ::CryptCheck::Tls::Https::Server.new(ARGV[0], ARGV[1] || 443)
|
||
|
p grade = ::CryptCheck::Tls::Https::Grade.new(server)
|
||
|
end
|
||
|
|
||
|
|