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.

19 lines
511B

  1. #!/usr/bin/env ruby
  2. $:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib'
  3. require 'rubygems'
  4. require 'bundler/setup'
  5. require 'logging'
  6. require 'cryptcheck'
  7. name = ARGV[0]
  8. if name
  9. ::Logging.logger.root.appenders = ::Logging.appenders.stdout
  10. ::Logging.logger.root.level = :warn
  11. server = ::CryptCheck::Tls::Xmpp::Server.new(name, ARGV[1] || :s2s)
  12. p grade = ::CryptCheck::Tls::Xmpp::Grade.new(server)
  13. else
  14. ::CryptCheck::Tls::Xmpp.analyze_from_file 'output/xmpp.yml', 'output/xmpp.html'
  15. end