Sha256: ba14b338ad4719931f5348852dc374853159698724cf830052d2f548d7ab3030
Contents?: true
Size: 1.11 KB
Versions: 19
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require_relative "../../../cloudflare/ssl_mode" module Neetob class CLI module MonthlyAudit module InstancesAndAddons module Cloudflare class SslTlsEncryptionModeSetToFull < CLI::Base def initialize super() end def run ui.success "### 3.2.1. Checking whether SSL/TLS encryption mode is set to Full" domains_data = [["Domain", "SSL/TLS encryption mode", "Audit Passed"]] ui.info("\n", print_to_audit_log: false) Neetob::CLI::Cloudflare::Base::ZONE_IDS.keys.select { |domain| domain.to_s.include?(".com") }.each do |domain| ui.info("Checking SSL/TLS encryption mode for #{domain}", print_to_audit_log: false) ssl_mode = Neetob::CLI::Cloudflare::SSLMode.new(domain).run audit_passed = ssl_mode.to_s == "full" ? "Yes" : "No" domains_data << [domain, ssl_mode, audit_passed] end ui.print_table(domains_data) end end end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems