| 1 |
|
| 2 |
# exported via command: perl examples/x509_cert_details.pl -dump -pem t/data/wildcard-cert.cert.pem > t/data/wildcard-cert.cert.pem_dump |
| 3 |
# hashref dumped via Data::Dump |
| 4 |
{ |
| 5 |
cdp => [], |
| 6 |
certificate_type => 305, |
| 7 |
digest_sha1 => { |
| 8 |
pubkey => pack("H*","308c68e0f72b4592c2084b9f02113d1203352779"), |
| 9 |
x509 => pack("H*","6f07b76e454c7b5e00a8eb1d321019500fa294f5"), |
| 10 |
}, |
| 11 |
extensions => { |
| 12 |
count => 4, |
| 13 |
entries => [ |
| 14 |
{ |
| 15 |
critical => 1, |
| 16 |
data => "Digital Signature, Key Encipherment", |
| 17 |
ln => "X509v3 Key Usage", |
| 18 |
nid => 83, |
| 19 |
oid => "2.5.29.15", |
| 20 |
sn => "keyUsage", |
| 21 |
}, |
| 22 |
{ |
| 23 |
critical => 0, |
| 24 |
data => "TLS Web Server Authentication, TLS Web Client Authentication", |
| 25 |
ln => "X509v3 Extended Key Usage", |
| 26 |
nid => 126, |
| 27 |
oid => "2.5.29.37", |
| 28 |
sn => "extendedKeyUsage", |
| 29 |
}, |
| 30 |
{ |
| 31 |
critical => 0, |
| 32 |
data => "30:8C:68:E0:F7:2B:45:92:C2:08:4B:9F:02:11:3D:12:03:35:27:79", |
| 33 |
ln => "X509v3 Subject Key Identifier", |
| 34 |
nid => 82, |
| 35 |
oid => "2.5.29.14", |
| 36 |
sn => "subjectKeyIdentifier", |
| 37 |
}, |
| 38 |
{ |
| 39 |
critical => 0, |
| 40 |
data => "DNS:*.net-ssleay.example", |
| 41 |
ln => "X509v3 Subject Alternative Name", |
| 42 |
nid => 85, |
| 43 |
oid => "2.5.29.17", |
| 44 |
sn => "subjectAltName", |
| 45 |
}, |
| 46 |
], |
| 47 |
}, |
| 48 |
extkeyusage => { |
| 49 |
ln => [ |
| 50 |
"TLS Web Server Authentication", |
| 51 |
"TLS Web Client Authentication", |
| 52 |
], |
| 53 |
nid => [129, 130], |
| 54 |
oid => ["1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.2"], |
| 55 |
sn => ["serverAuth", "clientAuth"], |
| 56 |
}, |
| 57 |
fingerprint => { |
| 58 |
md5 => "D7:CA:D0:AA:8E:A9:30:8C:0D:F4:A3:6B:1B:94:74:76", |
| 59 |
sha1 => "6F:07:B7:6E:45:4C:7B:5E:00:A8:EB:1D:32:10:19:50:0F:A2:94:F5", |
| 60 |
}, |
| 61 |
hash => { |
| 62 |
issuer => { dec => 2397076613, hex => "8EE07C85" }, |
| 63 |
issuer_and_serial => { dec => 3758447858, hex => "E0055CF2" }, |
| 64 |
subject => { dec => 3756668519, hex => "DFEA3667" }, |
| 65 |
}, |
| 66 |
issuer => { |
| 67 |
count => 4, |
| 68 |
entries => [ |
| 69 |
{ |
| 70 |
data => "PL", |
| 71 |
data_utf8_decoded => "PL", |
| 72 |
ln => "countryName", |
| 73 |
nid => 14, |
| 74 |
oid => "2.5.4.6", |
| 75 |
sn => "C", |
| 76 |
}, |
| 77 |
{ |
| 78 |
data => "Net-SSLeay", |
| 79 |
data_utf8_decoded => "Net-SSLeay", |
| 80 |
ln => "organizationName", |
| 81 |
nid => 17, |
| 82 |
oid => "2.5.4.10", |
| 83 |
sn => "O", |
| 84 |
}, |
| 85 |
{ |
| 86 |
data => "Test Suite", |
| 87 |
data_utf8_decoded => "Test Suite", |
| 88 |
ln => "organizationalUnitName", |
| 89 |
nid => 18, |
| 90 |
oid => "2.5.4.11", |
| 91 |
sn => "OU", |
| 92 |
}, |
| 93 |
{ |
| 94 |
data => "Intermediate CA", |
| 95 |
data_utf8_decoded => "Intermediate CA", |
| 96 |
ln => "commonName", |
| 97 |
nid => 13, |
| 98 |
oid => "2.5.4.3", |
| 99 |
sn => "CN", |
| 100 |
}, |
| 101 |
], |
| 102 |
oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/CN=Intermediate CA", |
| 103 |
print_rfc2253 => "CN=Intermediate CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 104 |
print_rfc2253_utf8 => "CN=Intermediate CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 105 |
print_rfc2253_utf8_decoded => "CN=Intermediate CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 106 |
}, |
| 107 |
keyusage => ["digitalSignature", "keyEncipherment"], |
| 108 |
not_after => "2038-01-01T00:00:00Z", |
| 109 |
not_before => "2020-01-01T00:00:00Z", |
| 110 |
ns_cert_type => [], |
| 111 |
pubkey_alg => "rsaEncryption", |
| 112 |
pubkey_bits => 2048, |
| 113 |
pubkey_security_bits => 112, |
| 114 |
pubkey_id => 6, |
| 115 |
pubkey_size => 256, |
| 116 |
serial => { dec => 3, hex => "03", long => 3 }, |
| 117 |
signature_alg => "sha256WithRSAEncryption", |
| 118 |
subject => { |
| 119 |
altnames => [2, "*.net-ssleay.example"], |
| 120 |
count => 4, |
| 121 |
entries => [ |
| 122 |
{ |
| 123 |
data => "PL", |
| 124 |
data_utf8_decoded => "PL", |
| 125 |
ln => "countryName", |
| 126 |
nid => 14, |
| 127 |
oid => "2.5.4.6", |
| 128 |
sn => "C", |
| 129 |
}, |
| 130 |
{ |
| 131 |
data => "Net-SSLeay", |
| 132 |
data_utf8_decoded => "Net-SSLeay", |
| 133 |
ln => "organizationName", |
| 134 |
nid => 17, |
| 135 |
oid => "2.5.4.10", |
| 136 |
sn => "O", |
| 137 |
}, |
| 138 |
{ |
| 139 |
data => "Test Suite", |
| 140 |
data_utf8_decoded => "Test Suite", |
| 141 |
ln => "organizationalUnitName", |
| 142 |
nid => 18, |
| 143 |
oid => "2.5.4.11", |
| 144 |
sn => "OU", |
| 145 |
}, |
| 146 |
{ |
| 147 |
data => "*.net-ssleay.example", |
| 148 |
data_utf8_decoded => "*.net-ssleay.example", |
| 149 |
ln => "commonName", |
| 150 |
nid => 13, |
| 151 |
oid => "2.5.4.3", |
| 152 |
sn => "CN", |
| 153 |
}, |
| 154 |
], |
| 155 |
oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/CN=*.net-ssleay.example", |
| 156 |
print_rfc2253 => "CN=*.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 157 |
print_rfc2253_utf8 => "CN=*.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 158 |
print_rfc2253_utf8_decoded => "CN=*.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 159 |
}, |
| 160 |
version => 2, |
| 161 |
} |