diff --git a/narbeh.json b/narbeh.json new file mode 100644 index 0000000..012bc23 --- /dev/null +++ b/narbeh.json @@ -0,0 +1 @@ +{"host": "narbeh.org", "issued_to": "sni.cloudflaressl.com", "issued_o": "Cloudflare, Inc.", "issuer_c": "US", "issuer_o": "CloudFlare, Inc.", "issuer_ou": null, "issuer_cn": "CloudFlare Inc ECC CA-2", "cert_sn": "20958932659753030511717961095784314907", "cert_sha1": "FC:2D:0E:FD:DE:C0:98:7D:23:D2:E7:14:4C:07:6A:3D:25:25:49:B6", "cert_alg": "ecdsa-with-SHA256", "cert_ver": 2, "cert_sans": "DNS:sni.cloudflaressl.com; DNS:narbeh.org; DNS:*.narbeh.org", "cert_exp": false, "valid_from": "2020-04-02", "valid_till": "2020-10-09", "validity_days": 190, "days_left": 150, "tcp_port": 443} \ No newline at end of file diff --git a/ssl_checker.py b/ssl_checker.py index 87d8d8d..efa08c3 100755 --- a/ssl_checker.py +++ b/ssl_checker.py @@ -232,7 +232,7 @@ def show_result(user_args): if user_args.json_save_true: for host in hosts: with open(host.split('.')[0] + '.json', 'w', encoding='UTF-8') as fp: - fp.write(json.dumps(context)) + fp.write(json.dumps(context[host])) def export_csv(context, filename): diff --git a/twitter.json b/twitter.json new file mode 100644 index 0000000..48efd5d --- /dev/null +++ b/twitter.json @@ -0,0 +1 @@ +{"host": "twitter.com", "issued_to": "twitter.com", "issued_o": "Twitter, Inc.", "issuer_c": "US", "issuer_o": "DigiCert Inc", "issuer_ou": "www.digicert.com", "issuer_cn": "DigiCert SHA2 High Assurance Server CA", "cert_sn": "8284762493478544007350790660356831147", "cert_sha1": "86:CD:B1:CB:95:44:0C:F6:81:AB:C8:B2:29:F3:63:F8:9D:F9:11:89", "cert_alg": "sha256WithRSAEncryption", "cert_ver": 2, "cert_sans": "DNS:twitter.com; DNS:www.twitter.com", "cert_exp": false, "valid_from": "2020-03-05", "valid_till": "2021-03-02", "validity_days": 362, "days_left": 294, "tcp_port": 443} \ No newline at end of file