Sha256: 2682ea4da4927c457b27255821c64866f0405a2435bbca94dcf3bad415bd4d22
Contents?: true
Size: 1.12 KB
Versions: 13
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true require_relative "../../../cloudflare/min_tls_version" module Neetob class CLI module MonthlyAudit module InstancesAndAddons module Cloudflare class MinimumTlsVersionIsOnePointTwo < CLI::Base def initialize super() end def run ui.success "### 3.2.3. Checking whether Minimum TLS version is 1.2" domains_data = [["Domain", "Minimum TLS version", "Audit Passed"]] ui.info("\n", print_to_audit_log: false) Neetob::CLI::Cloudflare::Base::ZONE_IDS.keys.select { |domain| domain.to_s.include?(".com") }.map do |domain| ui.info("Checking Minimum TLS version for #{domain}", print_to_audit_log: false) min_tls_version = Neetob::CLI::Cloudflare::MinTlsVersion.new(domain).run audit_passed = min_tls_version.to_s == "1.2" ? "Yes" : "No" domains_data << [domain, min_tls_version, audit_passed] end ui.print_table(domains_data) end end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems