| 1 |
|
| 2 |
# exported via command: perl examples/x509_cert_details.pl -dump -pem t/data/simple-cert.cert.pem > t/data/simple-cert.cert.pem_dump |
| 3 |
# hashref dumped via Data::Dump |
| 4 |
{ |
| 5 |
cdp => [], |
| 6 |
certificate_type => 305, |
| 7 |
digest_sha1 => { |
| 8 |
pubkey => pack("H*","f97df76fdbdf40e3a4b123b8a1176589fc7a5bf5"), |
| 9 |
x509 => pack("H*","9c2e90b9a7847a3a2bbefda5d146ea3175e90326"), |
| 10 |
}, |
| 11 |
extensions => { |
| 12 |
count => 3, |
| 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 => "F9:7D:F7:6F:DB:DF:40:E3:A4:B1:23:B8:A1:17:65:89:FC:7A:5B:F5", |
| 33 |
ln => "X509v3 Subject Key Identifier", |
| 34 |
nid => 82, |
| 35 |
oid => "2.5.29.14", |
| 36 |
sn => "subjectKeyIdentifier", |
| 37 |
}, |
| 38 |
], |
| 39 |
}, |
| 40 |
extkeyusage => { |
| 41 |
ln => [ |
| 42 |
"TLS Web Server Authentication", |
| 43 |
"TLS Web Client Authentication", |
| 44 |
], |
| 45 |
nid => [129, 130], |
| 46 |
oid => ["1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.2"], |
| 47 |
sn => ["serverAuth", "clientAuth"], |
| 48 |
}, |
| 49 |
fingerprint => { |
| 50 |
md5 => "B0:86:83:7D:61:C9:77:F6:7B:38:64:E2:5E:DE:93:F1", |
| 51 |
sha1 => "9C:2E:90:B9:A7:84:7A:3A:2B:BE:FD:A5:D1:46:EA:31:75:E9:03:26", |
| 52 |
}, |
| 53 |
hash => { |
| 54 |
issuer => { dec => 2397076613, hex => "8EE07C85" }, |
| 55 |
issuer_and_serial => { dec => 2508738936, hex => 95885178 }, |
| 56 |
subject => { dec => 2371491374, hex => "8D5A162E" }, |
| 57 |
}, |
| 58 |
issuer => { |
| 59 |
count => 4, |
| 60 |
entries => [ |
| 61 |
{ |
| 62 |
data => "PL", |
| 63 |
data_utf8_decoded => "PL", |
| 64 |
ln => "countryName", |
| 65 |
nid => 14, |
| 66 |
oid => "2.5.4.6", |
| 67 |
sn => "C", |
| 68 |
}, |
| 69 |
{ |
| 70 |
data => "Net-SSLeay", |
| 71 |
data_utf8_decoded => "Net-SSLeay", |
| 72 |
ln => "organizationName", |
| 73 |
nid => 17, |
| 74 |
oid => "2.5.4.10", |
| 75 |
sn => "O", |
| 76 |
}, |
| 77 |
{ |
| 78 |
data => "Test Suite", |
| 79 |
data_utf8_decoded => "Test Suite", |
| 80 |
ln => "organizationalUnitName", |
| 81 |
nid => 18, |
| 82 |
oid => "2.5.4.11", |
| 83 |
sn => "OU", |
| 84 |
}, |
| 85 |
{ |
| 86 |
data => "Intermediate CA", |
| 87 |
data_utf8_decoded => "Intermediate CA", |
| 88 |
ln => "commonName", |
| 89 |
nid => 13, |
| 90 |
oid => "2.5.4.3", |
| 91 |
sn => "CN", |
| 92 |
}, |
| 93 |
], |
| 94 |
oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/CN=Intermediate CA", |
| 95 |
print_rfc2253 => "CN=Intermediate CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 96 |
print_rfc2253_utf8 => "CN=Intermediate CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 97 |
print_rfc2253_utf8_decoded => "CN=Intermediate CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 98 |
}, |
| 99 |
keyusage => ["digitalSignature", "keyEncipherment"], |
| 100 |
not_after => "2038-01-01T00:00:00Z", |
| 101 |
not_before => "2020-01-01T00:00:00Z", |
| 102 |
ns_cert_type => [], |
| 103 |
pubkey_alg => "rsaEncryption", |
| 104 |
pubkey_bits => 2048, |
| 105 |
pubkey_security_bits => 112, |
| 106 |
pubkey_id => 6, |
| 107 |
pubkey_size => 256, |
| 108 |
serial => { dec => 1, hex => "01", long => 1 }, |
| 109 |
signature_alg => "sha256WithRSAEncryption", |
| 110 |
subject => { |
| 111 |
altnames => [], |
| 112 |
count => 4, |
| 113 |
entries => [ |
| 114 |
{ |
| 115 |
data => "PL", |
| 116 |
data_utf8_decoded => "PL", |
| 117 |
ln => "countryName", |
| 118 |
nid => 14, |
| 119 |
oid => "2.5.4.6", |
| 120 |
sn => "C", |
| 121 |
}, |
| 122 |
{ |
| 123 |
data => "Net-SSLeay", |
| 124 |
data_utf8_decoded => "Net-SSLeay", |
| 125 |
ln => "organizationName", |
| 126 |
nid => 17, |
| 127 |
oid => "2.5.4.10", |
| 128 |
sn => "O", |
| 129 |
}, |
| 130 |
{ |
| 131 |
data => "Test Suite", |
| 132 |
data_utf8_decoded => "Test Suite", |
| 133 |
ln => "organizationalUnitName", |
| 134 |
nid => 18, |
| 135 |
oid => "2.5.4.11", |
| 136 |
sn => "OU", |
| 137 |
}, |
| 138 |
{ |
| 139 |
data => "simple-cert.net-ssleay.example", |
| 140 |
data_utf8_decoded => "simple-cert.net-ssleay.example", |
| 141 |
ln => "commonName", |
| 142 |
nid => 13, |
| 143 |
oid => "2.5.4.3", |
| 144 |
sn => "CN", |
| 145 |
}, |
| 146 |
], |
| 147 |
oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/CN=simple-cert.net-ssleay.example", |
| 148 |
print_rfc2253 => "CN=simple-cert.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 149 |
print_rfc2253_utf8 => "CN=simple-cert.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 150 |
print_rfc2253_utf8_decoded => "CN=simple-cert.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 151 |
}, |
| 152 |
version => 2, |
| 153 |
} |