You are here
Home > IT > opensslでサイトのSSL証明書期限を調べる

opensslでサイトのSSL証明書期限を調べる

openssl s_client -connect dosugoi.com:443 < /dev/null 2> /dev/null | openssl x509 -text

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            03:c0:f5:6b:29:4f:ff:54:93:5c:58:df:66:c0:a6:35:e3:4c
    Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, O=Let's Encrypt, CN=R3
        Validity
            Not Before: Apr 28 01:12:49 2021 GMT
            Not After : Jul 27 01:12:49 2021 GMT
        Subject: CN=syaka.co.jp
        Subject Public Key Info:
            Public Key Algorithm: id-ecPublicKey
                Public-Key: (256 bit)
                pub:
                    04:dc:f4:ee:53:66:6e:9a:d6:91:ab:40:f2:e8:a4:
                    c9:26:40:16:83:e3:f9:07:0a:c9:9e:02:c5:42:c8:
                    8c:63:73:1d:8e:15:f1:21:5e:1d:03:1e:50:6c:84:
                    82:d7:0c:b1:08:b4:8e:9c:80:68:2f:26:c6:a9:09:
                    b5:a9:f6:be:de
                ASN1 OID: prime256v1
                NIST CURVE: P-256
        X509v3 extensions:
            X509v3 Key Usage: critical
                Digital Signature
            X509v3 Extended Key Usage:
                TLS Web Server Authentication, TLS Web Client Authentication
            X509v3 Basic Constraints: critical
                CA:FALSE
            X509v3 Subject Key Identifier:
                25:4D:9A:D0:F0:EF:E7:81:7F:9C:4A:88:41:DA:10:0E:84:AF:AD:D8
            X509v3 Authority Key Identifier:
                keyid:14:2E:B3:17:B7:58:56:CB:AE:50:09:40:E6:1F:AF:9D:8B:14:C2:C6

            Authority Information Access:
                OCSP - URI:http://r3.o.lencr.org
                CA Issuers - URI:http://r3.i.lencr.org/

            X509v3 Subject Alternative Name:
                DNS:dosugoi.com, DNS:syaka.co.jp, DNS:www.dosugoi.com, DNS:www.syaka.co.jp
            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

            1.3.6.1.4.1.11129.2.4.2:
.....qs.2...B...7Y...t..-8..N..v..\./.w0".T..0.V..M..3.../ ..N.d....y.@.C.....G0E. y+.|......}C}8q...bX....a..Q9....!....fu.6...A\..N!z7.. .te........
Top