| 1 |
|
| 2 |
# exported via command: perl examples/x509_cert_details.pl -dump -pem t/data/verify-cert.cert.pem > t/data/verify-cert.cert.pem_dump |
| 3 |
# hashref dumped via Data::Dump |
| 4 |
{ |
| 5 |
cdp => [], |
| 6 |
certificate_type => 305, |
| 7 |
digest_sha1 => { |
| 8 |
pubkey => pack("H*","6c04300b89fdd566b291c90161a982e849f149c8"), |
| 9 |
x509 => pack("H*","b01e01d619bcec62ef10ccb75460bb0cc6b2bce0"), |
| 10 |
}, |
| 11 |
extensions => { |
| 12 |
count => 5, |
| 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 => "6C:04:30:0B:89:FD:D5:66:B2:91:C9:01:61:A9:82:E8:49:F1:49:C8", |
| 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 => "Policy: 1.2.3.4.5", |
| 41 |
ln => "X509v3 Certificate Policies", |
| 42 |
nid => 89, |
| 43 |
oid => "2.5.29.32", |
| 44 |
sn => "certificatePolicies", |
| 45 |
}, |
| 46 |
{ |
| 47 |
critical => 0, |
| 48 |
data => "email:john.doe\@net-ssleay.example, DNS:*.johndoe.net-ssleay.example, IP Address:192.168.0.3", |
| 49 |
ln => "X509v3 Subject Alternative Name", |
| 50 |
nid => 85, |
| 51 |
oid => "2.5.29.17", |
| 52 |
sn => "subjectAltName", |
| 53 |
}, |
| 54 |
], |
| 55 |
}, |
| 56 |
extkeyusage => { |
| 57 |
ln => [ |
| 58 |
"TLS Web Server Authentication", |
| 59 |
"TLS Web Client Authentication", |
| 60 |
], |
| 61 |
nid => [129, 130], |
| 62 |
oid => ["1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.2"], |
| 63 |
sn => ["serverAuth", "clientAuth"], |
| 64 |
}, |
| 65 |
fingerprint => { |
| 66 |
md5 => "3F:EE:91:43:6F:20:61:62:C6:AD:26:E9:ED:BF:F3:25", |
| 67 |
sha1 => "B0:1E:01:D6:19:BC:EC:62:EF:10:CC:B7:54:60:BB:0C:C6:B2:BC:E0", |
| 68 |
}, |
| 69 |
hash => { |
| 70 |
issuer => { dec => 1524484324, hex => "5ADDC8E4" }, |
| 71 |
issuer_and_serial => { dec => 3016836270, hex => "B3D144AE" }, |
| 72 |
subject => { dec => 1528789409, hex => "5B1F79A1" }, |
| 73 |
}, |
| 74 |
issuer => { |
| 75 |
count => 4, |
| 76 |
entries => [ |
| 77 |
{ |
| 78 |
data => "PL", |
| 79 |
data_utf8_decoded => "PL", |
| 80 |
ln => "countryName", |
| 81 |
nid => 14, |
| 82 |
oid => "2.5.4.6", |
| 83 |
sn => "C", |
| 84 |
}, |
| 85 |
{ |
| 86 |
data => "Net-SSLeay", |
| 87 |
data_utf8_decoded => "Net-SSLeay", |
| 88 |
ln => "organizationName", |
| 89 |
nid => 17, |
| 90 |
oid => "2.5.4.10", |
| 91 |
sn => "O", |
| 92 |
}, |
| 93 |
{ |
| 94 |
data => "Test Suite", |
| 95 |
data_utf8_decoded => "Test Suite", |
| 96 |
ln => "organizationalUnitName", |
| 97 |
nid => 18, |
| 98 |
oid => "2.5.4.11", |
| 99 |
sn => "OU", |
| 100 |
}, |
| 101 |
{ |
| 102 |
data => "Verification CA", |
| 103 |
data_utf8_decoded => "Verification CA", |
| 104 |
ln => "commonName", |
| 105 |
nid => 13, |
| 106 |
oid => "2.5.4.3", |
| 107 |
sn => "CN", |
| 108 |
}, |
| 109 |
], |
| 110 |
oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/CN=Verification CA", |
| 111 |
print_rfc2253 => "CN=Verification CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 112 |
print_rfc2253_utf8 => "CN=Verification CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 113 |
print_rfc2253_utf8_decoded => "CN=Verification CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 114 |
}, |
| 115 |
keyusage => ["digitalSignature", "keyEncipherment"], |
| 116 |
not_after => "2038-01-01T00:00:00Z", |
| 117 |
not_before => "2020-01-01T00:00:00Z", |
| 118 |
ns_cert_type => [], |
| 119 |
pubkey_alg => "rsaEncryption", |
| 120 |
pubkey_bits => 2048, |
| 121 |
pubkey_security_bits => 112, |
| 122 |
pubkey_id => 6, |
| 123 |
pubkey_size => 256, |
| 124 |
serial => { dec => 1, hex => "01", long => 1 }, |
| 125 |
signature_alg => "sha256WithRSAEncryption", |
| 126 |
subject => { |
| 127 |
altnames => [ |
| 128 |
1, |
| 129 |
"john.doe\@net-ssleay.example", |
| 130 |
2, |
| 131 |
"*.johndoe.net-ssleay.example", |
| 132 |
7, |
| 133 |
"\xC0\xA8\0\3", |
| 134 |
], |
| 135 |
count => 5, |
| 136 |
entries => [ |
| 137 |
{ |
| 138 |
data => "PL", |
| 139 |
data_utf8_decoded => "PL", |
| 140 |
ln => "countryName", |
| 141 |
nid => 14, |
| 142 |
oid => "2.5.4.6", |
| 143 |
sn => "C", |
| 144 |
}, |
| 145 |
{ |
| 146 |
data => "Net-SSLeay", |
| 147 |
data_utf8_decoded => "Net-SSLeay", |
| 148 |
ln => "organizationName", |
| 149 |
nid => 17, |
| 150 |
oid => "2.5.4.10", |
| 151 |
sn => "O", |
| 152 |
}, |
| 153 |
{ |
| 154 |
data => "Test Suite", |
| 155 |
data_utf8_decoded => "Test Suite", |
| 156 |
ln => "organizationalUnitName", |
| 157 |
nid => 18, |
| 158 |
oid => "2.5.4.11", |
| 159 |
sn => "OU", |
| 160 |
}, |
| 161 |
{ |
| 162 |
data => "*.johndoe.net-ssleay.example", |
| 163 |
data_utf8_decoded => "*.johndoe.net-ssleay.example", |
| 164 |
ln => "commonName", |
| 165 |
nid => 13, |
| 166 |
oid => "2.5.4.3", |
| 167 |
sn => "CN", |
| 168 |
}, |
| 169 |
{ |
| 170 |
data => "john.doe\@net-ssleay.example", |
| 171 |
data_utf8_decoded => "john.doe\@net-ssleay.example", |
| 172 |
ln => "emailAddress", |
| 173 |
nid => 48, |
| 174 |
oid => "1.2.840.113549.1.9.1", |
| 175 |
sn => "emailAddress", |
| 176 |
}, |
| 177 |
], |
| 178 |
oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/CN=*.johndoe.net-ssleay.example/emailAddress=john.doe\@net-ssleay.example", |
| 179 |
print_rfc2253 => "emailAddress=john.doe\@net-ssleay.example,CN=*.johndoe.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 180 |
print_rfc2253_utf8 => "emailAddress=john.doe\@net-ssleay.example,CN=*.johndoe.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 181 |
print_rfc2253_utf8_decoded => "emailAddress=john.doe\@net-ssleay.example,CN=*.johndoe.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 182 |
}, |
| 183 |
version => 2, |
| 184 |
} |