| 1 |
|
| 2 |
# exported via command: perl examples/x509_cert_details.pl -dump -pem t/data/revoked-cert.cert.pem > t/data/revoked-cert.cert.pem_dump |
| 3 |
# hashref dumped via Data::Dump |
| 4 |
{ |
| 5 |
cdp => [], |
| 6 |
certificate_type => 305, |
| 7 |
digest_sha1 => { |
| 8 |
pubkey => pack("H*","0a899f29c348fdeb499c8493b961f2ff773bb18f"), |
| 9 |
x509 => pack("H*","9a401f7c4714157b88b9a24faec20e6b89fb6864"), |
| 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 => "0A:89:9F:29:C3:48:FD:EB:49:9C:84:93:B9:61:F2:FF:77:3B:B1:8F", |
| 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 => "42:CE:3D:42:75:D9:D9:58:D3:C0:4F:DB:FD:40:5E:49", |
| 51 |
sha1 => "9A:40:1F:7C:47:14:15:7B:88:B9:A2:4F:AE:C2:0E:6B:89:FB:68:64", |
| 52 |
}, |
| 53 |
hash => { |
| 54 |
issuer => { dec => 2397076613, hex => "8EE07C85" }, |
| 55 |
issuer_and_serial => { dec => 4163254640, hex => "F8263970" }, |
| 56 |
subject => { dec => 168762383, hex => "A0F1C0F" }, |
| 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 => 5, hex => "05", long => 5 }, |
| 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 => "revoked-cert.net-ssleay.example", |
| 140 |
data_utf8_decoded => "revoked-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=revoked-cert.net-ssleay.example", |
| 148 |
print_rfc2253 => "CN=revoked-cert.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 149 |
print_rfc2253_utf8 => "CN=revoked-cert.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 150 |
print_rfc2253_utf8_decoded => "CN=revoked-cert.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 151 |
}, |
| 152 |
version => 2, |
| 153 |
} |