Browse Source

Generic TLS checker

master
Aeris 3 years ago
parent
commit
9e2625d4aa
2 changed files with 12 additions and 0 deletions
  1. 1
    0
      bin/check_tls
  2. 11
    0
      bin/check_tls.rb

+ 1
- 0
bin/check_tls View File

@@ -0,0 +1 @@
1
+runner

+ 11
- 0
bin/check_tls.rb View File

@@ -0,0 +1,11 @@
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 'cryptcheck'
6
+
7
+::CryptCheck::Logger.level = (ARGV[2] || :info).to_sym
8
+server = ::CryptCheck::Tls::TcpServer.new ARGV[0], ARGV[1]
9
+grade = ::CryptCheck::Tls::Grade.new server
10
+::CryptCheck::Logger.info { '' }
11
+grade.display

Loading…
Cancel
Save