用命令行检查SSL到期日期

.

0

linux命令:echo | openssl s_client -showcerts -servername google.com -connect gnupg.org:443 2>/dev/null | openssl x509 -inform pem -noout -text -text -noout pem -inform x509 openssl | 2>/dev/null gnupg.org:443 -connect google.com -servername -showcerts s_client openssl | echo echo | openssl s_client -showcerts -servername google.com -connect gnupg.org:443 2>/dev/null | openssl x509 -inform pem -noout -textrootopen.com
linux命令:echo | openssl s_client -showcerts -servername google.com -connect gnupg.org:443 2>/dev/null | openssl x509 -inform pem -noout -text -text -noout pem -inform x509 openssl | 2>/dev/null gnupg.org:443 -connect google.com -servername -showcerts s_client openssl | echo echo | openssl s_client -showcerts -servername google.com -connect gnupg.org:443 2>/dev/null | openssl x509 -inform pem -noout -textrootopen.com
wctk 2018-12-22 21:23:50
输出
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            04:8e:67:bd:aa:6a:2e:d1:97:39:c0:41:39:fe:40:d8:f6:b6
    Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=Let's Encrypt, CN=Let's Encrypt Authority X3
        Validity
            Not Before: Dec 15 00:55:11 2018 GMT
            Not After : Mar 15 00:55:11 2019 GMT
        Subject: CN=gnupg.org
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:c2:ed:71:6a:20:80:f4:a1:d1:13:d3:7a:1d:9e:
                    0a:46:3b:f8:91:5b:43:b1:d0:d5:4d:4a:01:02:c8:
                    2d:07:23:38:c4:69:0e:25:75:e7:9d:9e:1a:46:26:
                    d2:0d:53:20:2c:7f:fb:9b:86:92:a4:a1:d2:f0:99:
                    9d:5b:c5:5e:3f:b6:30:2c:0f:21:92:58:6a:08:da:
                    25:a3:23:4a:8e:be:72:ab:b9:47:be:7f:27:4e:eb:
                    c8:1d:ae:d7:40:44:51:74:1e:41:7d:76:ec:11:a2:
                    fe:3f:a5:89:f1:b9:77:97:03:21:a3:69:61:81:b1:
                    74:a8:32:31:47:8c:a8:ab:6d:61:c0:7e:3a:f2:61:
                    6a:62:e9:d4:e8:90:01:80:e6:7d:8f:27:9b:14:21:
                    c4:6e:88:bf:9c:97:15:4d:49:6b:a5:1c:d9:cb:72:
                    e7:fc:c1:b4:6c:e7:7c:94:04:80:cf:16:10:70:e0:
                    2e:61:ff:28:54:84:41:9b:27:f0:60:f0:d1:55:59:
                    3f:30:26:68:a9:e8:e0:25:01:66:a2:af:43:c5:b2:
                    bd:3a:72:74:28:91:82:5f:24:99:2a:26:dc:07:b5:
                    c7:0e:8b:a0:a0:b4:f3:14:55:ee:59:47:e5:05:e1:
                    34:21:03:12:b9:02:33:00:ee:45:88:b1:0c:2a:78:
                    64:9d
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Key Usage: critical
                Digital Signature, Key Encipherment
            X509v3 Extended Key Usage:
                TLS Web Server Authentication, TLS Web Client Authentication
            X509v3 Basic Constraints: critical
                CA:FALSE
            X509v3 Subject Key Identifier:
                D3:63:19:71:6E:45:F8:80:C3:D5:72:26:6C:8C:BF:D2:CE:16:6A:3B
            X509v3 Authority Key Identifier:
                keyid:A8:4A:6A:63:04:7D:DD:BA:E6:D1:39:B7:A6:45:65:EF:F3:A8:EC:A1

            Authority Information Access:
                OCSP - URI:http://ocsp.int-x3.letsencrypt.org
                CA Issuers - URI:http://cert.int-x3.letsencrypt.org/

            X509v3 Subject Alternative Name:
                DNS:gnupg.org, DNS:www.gnupg.org
            X509v3 Certificate Policies:
                Policy: 2.23.140.1.2.1
                Policy: 1.3.6.1.4.1.44947.1.1.1
                  CPS: http://cps.letsencrypt.org

            CT Precertificate SCTs:
                Signed Certificate Timestamp:
                    Version   : v1(0)
                    Log ID    : 55:81:D4:C2:16:90:36:01:4A:EA:0B:9B:57:3C:53:F0:
                                C0:E4:38:78:70:25:08:17:2F:A3:AA:1D:07:13:D3:0C
                    Timestamp : Dec 15 01:55:11.637 2018 GMT
                    Extensions: none
                    Signature : ecdsa-with-SHA256
                                30:45:02:21:00:FA:DE:EF:B2:09:AA:F5:54:5F:B6:8E:
                                37:76:9C:8E:93:1A:E9:8D:99:EF:E3:60:42:73:5D:FB:
                                0E:E4:1F:82:EA:02:20:66:9C:EB:3A:DD:D5:6A:9B:1D:
                                FA:54:29:AE:DB:5F:36:55:1C:65:20:49:D8:64:96:15:
                                7C:28:63:67:F5:1D:98
                Signed Certificate Timestamp:
                    Version   : v1(0)
                    Log ID    : 29:3C:51:96:54:C8:39:65:BA:AA:50:FC:58:07:D4:B7:
                                6F:BF:58:7A:29:72:DC:A4:C3:0C:F4:E5:45:47:F4:78
                    Timestamp : Dec 15 01:55:11.478 2018 GMT
                    Extensions: none
                    Signature : ecdsa-with-SHA256
                                30:45:02:21:00:BA:61:CD:80:11:AF:37:A7:BB:B7:25:
                                AD:1D:09:B0:92:8D:C7:46:23:C0:A0:93:2F:F5:0A:AB:
                                57:0F:3A:9F:05:02:20:1C:5D:DE:6A:A6:53:1C:EC:E3:
                                05:2D:97:1F:3E:43:89:8D:C0:06:51:8E:05:94:1B:3D:
                                81:59:6C:53:DE:6D:9F
    Signature Algorithm: sha256WithRSAEncryption
         92:a9:42:bf:9a:3b:e4:04:e3:6b:44:0e:ec:0f:61:3d:ea:70:
         9a:49:02:2a:87:4d:c6:ba:77:00:86:38:16:15:76:af:7d:e4:
         bc:84:31:c0:a9:bd:a3:c1:c2:f8:3e:ff:3b:8e:b1:87:0d:fa:
         62:c1:aa:1a:e7:cc:d7:68:db:0d:3e:73:2b:7d:ae:cb:b8:d8:
         bf:9c:a7:a0:43:52:d7:41:e5:68:f3:f3:a0:bf:0c:23:91:40:
         ce:a8:db:85:6c:13:c9:dc:73:7f:74:43:64:32:ba:72:67:f1:
         dc:90:15:aa:35:fc:54:49:ce:f0:50:58:e8:4d:2f:0f:9e:ba:
         64:ba:9a:03:49:d3:6d:52:87:c0:c2:a4:c9:3b:c8:c8:2c:00:
         1c:8b:9a:b8:f3:0e:4f:72:dc:40:53:98:a3:39:be:b5:5f:3d:
         77:62:c2:37:1d:c2:81:bc:91:7c:15:04:d8:7a:76:fd:fa:c4:
         42:d7:a4:2f:77:f0:fa:c4:f0:38:7c:e8:b0:fb:45:18:0b:cb:
         26:bd:68:28:01:57:af:6c:8c:9a:67:2f:5d:22:cb:42:f3:02:
         63:bc:b3:cc:2a:a7:a0:ff:bb:4d:1a:18:45:85:d5:b3:35:20:
         19:d1:f8:ac:78:b3:36:97:78:ae:d3:c8:9d:a7:db:24:8c:e9:
         80:48:18:11

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章