CSRファイルの記載内容を確認してみた

otherOther

CSRファイルに記載されている内容を確認してみました。

広告

CSRの中身を確認する

OpenSSLのコマンドで確認することができます。
Windows環境でもOpenSSLをインストールすれば実行可能です。

openssl req -noout -text -in xxx.csr

確認結果

以下のような結果が出力されます。

C:\Program Files\OpenSSL-Win64\bin>openssl req -noout -text -in certificate-test.csr
Certificate Request:
    Data:
        Version: 1 (0x0)
        Subject: CN=www.hogehoge.com, O=Hoge Corporation, L=Minato City, ST=Tokyo, C=JP
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:c8:ef:24:c7:bc:e1:b1:e9:b1:75:ba:4b:87:0d:
                    9d:75:6c:de:fc:91:c8:ce:31:9a:c5:a9:de:d9:6b:
                    15:d3:9b:90:0e:21:b9:44:5f:5e:cf:ad:26:62:79:
                    7f:75:35:75:2f:6b:c7:55:76:56:62:59:f8:04:5f:
                    d7:c9:9f:ed:14:53:f0:c1:eb:e4:54:70:ae:c2:7b:
                    5d:70:d0:ea:0f:13:74:a6:14:96:4f:ae:a4:cc:a0:
                    b8:ca:47:31:13:5d:1a:47:22:5a:73:96:d9:49:b2:
                    83:2e:60:a2:d5:ee:60:5c:e4:e4:c1:e8:2c:58:fc:
                    be:4e:f3:5f:00:a4:66:a1:f5:72:b1:60:5e:c1:13:
                    1a:cc:be:38:38:f0:59:6b:a1:a4:de:28:20:94:76:
                    a0:2d:39:a6:31:bb:dd:e3:ec:dd:f6:4a:6d:e9:a1:
                    a9:d2:4b:df:3e:be:42:43:ab:cc:5d:1c:cd:a3:37:
                    f8:09:36:98:20:28:e2:f8:16:3e:d3:b3:e9:b1:3e:
                    3e:9c:c8:41:82:81:f6:e3:50:d8:b2:80:e0:89:82:
                    be:77:ce:d2:4c:43:4b:d9:b3:5a:e4:c1:05:a4:05:
                    d6:cc:7b:47:00:3a:91:e1:1c:ff:0c:77:d0:89:7c:
                    e3:87:e2:40:e4:4c:09:65:46:6f:d3:59:45:1e:09:
                    2b:59
                Exponent: 65537 (0x10001)
        Attributes:
            Requested Extensions:
                X509v3 Key Usage: critical
                    Digital Signature, Key Encipherment
                X509v3 Extended Key Usage:
                    TLS Web Server Authentication, TLS Web Client Authentication
                X509v3 Basic Constraints:
                    CA:FALSE
    Signature Algorithm: sha256WithRSAEncryption
    Signature Value:
        88:55:62:68:64:21:a6:ba:b6:b8:91:0c:dd:fe:4e:24:09:73:
        5d:19:ec:02:f4:1f:d6:35:71:05:15:f6:3b:c9:e7:18:26:db:
        52:29:45:20:8c:f4:15:a3:97:a4:fc:b5:17:a9:32:0f:7c:f8:
        5d:d2:1f:ce:cb:28:2b:4c:87:1e:94:3a:0c:b6:8c:b2:43:48:
        1d:d8:54:32:94:04:75:48:f1:83:07:0e:9f:bd:12:ef:20:73:
        20:c8:3a:48:2d:16:a2:8a:e0:3f:e6:67:30:48:89:f7:58:cb:
        6d:02:80:b4:ee:65:11:50:8b:82:f1:b1:64:68:06:99:92:7b:
        88:05:b3:39:9b:c6:bf:c9:6d:44:08:6d:7b:f8:e6:82:9b:e4:
        ea:cb:cb:2e:38:9d:69:c3:00:4f:6b:78:b6:13:2c:7b:69:7c:
        ed:ee:ca:60:31:4d:ee:68:8d:aa:40:dc:e4:15:8e:e1:f7:03:
        ab:5a:a6:53:5b:08:19:8c:f2:95:17:ff:d6:42:cb:5a:9c:ec:
        b4:9d:3a:aa:68:f0:df:5c:f9:7c:8f:e0:0e:04:a4:cc:cb:d9:
        74:4f:1c:a9:2c:ed:32:bc:a7:60:b6:10:9e:58:9e:d0:b4:64:
        a3:0a:d8:44:9f:46:9c:68:7f:70:03:27:4c:18:25:a4:84:02:
        0a:80:8b:46

C:\Program Files\OpenSSL-Win64\bin>

コメント

タイトルとURLをコピーしました