| 1 |
|
| 2 |
# exported via command: perl examples/x509_cert_details.pl -dump -pem t/data/extended-cert.cert.pem > t/data/extended-cert.cert.pem_dump |
| 3 |
# hashref dumped via Data::Dump |
| 4 |
{ |
| 5 |
cdp => [ |
| 6 |
"http://intermediate-ca.net-ssleay.example/crl1.crl", |
| 7 |
"http://intermediate-ca.net-ssleay.example/crl2.crl", |
| 8 |
], |
| 9 |
certificate_type => 305, |
| 10 |
digest_sha1 => { |
| 11 |
pubkey => pack("H*","db74943bae1b9a5a4749fee47bc40dd18ca9f6bd"), |
| 12 |
x509 => pack("H*","0e54235bc35990a1c68c5960a964ef3836082cc9"), |
| 13 |
}, |
| 14 |
extensions => { |
| 15 |
count => 10, |
| 16 |
entries => [ |
| 17 |
{ |
| 18 |
critical => 0, |
| 19 |
data => "OCSP - URI:http://ocsp.intermediate-ca.net-ssleay.example\nCA Issuers - URI:http://issuers.intermediate-ca.net-ssleay.example", |
| 20 |
ln => "Authority Information Access", |
| 21 |
nid => 177, |
| 22 |
oid => "1.3.6.1.5.5.7.1.1", |
| 23 |
sn => "authorityInfoAccess", |
| 24 |
}, |
| 25 |
{ |
| 26 |
critical => 0, |
| 27 |
data => "D5:D3:4D:E4:59:B9:5C:75:F6:D9:72:F3:9B:DC:FB:EE:80:26:91:6F", |
| 28 |
ln => "X509v3 Authority Key Identifier", |
| 29 |
nid => 90, |
| 30 |
oid => "2.5.29.35", |
| 31 |
sn => "authorityKeyIdentifier", |
| 32 |
}, |
| 33 |
{ |
| 34 |
critical => 1, |
| 35 |
data => "CA:FALSE", |
| 36 |
ln => "X509v3 Basic Constraints", |
| 37 |
nid => 87, |
| 38 |
oid => "2.5.29.19", |
| 39 |
sn => "basicConstraints", |
| 40 |
}, |
| 41 |
{ |
| 42 |
critical => 0, |
| 43 |
data => "Policy: 1.2.3.4.5\nPolicy: 2.3.4.5.6", |
| 44 |
ln => "X509v3 Certificate Policies", |
| 45 |
nid => 89, |
| 46 |
oid => "2.5.29.32", |
| 47 |
sn => "certificatePolicies", |
| 48 |
}, |
| 49 |
{ |
| 50 |
critical => 0, |
| 51 |
data => "Full Name:\n URI:http://intermediate-ca.net-ssleay.example/crl1.crl\nFull Name:\n URI:http://intermediate-ca.net-ssleay.example/crl2.crl", |
| 52 |
ln => "X509v3 CRL Distribution Points", |
| 53 |
nid => 103, |
| 54 |
oid => "2.5.29.31", |
| 55 |
sn => "crlDistributionPoints", |
| 56 |
}, |
| 57 |
{ |
| 58 |
critical => 1, |
| 59 |
data => "TLS Web Server Authentication, TLS Web Client Authentication, Code Signing, E-mail Protection, Time Stamping, OCSP Signing, ipsec Internet Key Exchange, Microsoft Individual Code Signing, Microsoft Commercial Code Signing, Microsoft Trust List Signing, Microsoft Encrypted File System, 1.3.6.1.5.5.7.3.13, 1.3.6.1.5.5.7.3.14", |
| 60 |
ln => "X509v3 Extended Key Usage", |
| 61 |
nid => 126, |
| 62 |
oid => "2.5.29.37", |
| 63 |
sn => "extendedKeyUsage", |
| 64 |
}, |
| 65 |
{ |
| 66 |
critical => 0, |
| 67 |
data => "email:intermediate-ca\@net-ssleay.example, URI:http://intermediate-ca.net-ssleay.example, DNS:intermediate-ca.net-ssleay.example, Registered ID:1.2.0.0, IP Address:192.168.0.1, IP Address:FD25:F814:AFB5:9873:0:0:0:1, othername: emailAddress::ica\@net-ssleay.example", |
| 68 |
ln => "X509v3 Issuer Alternative Name", |
| 69 |
nid => 86, |
| 70 |
oid => "2.5.29.18", |
| 71 |
sn => "issuerAltName", |
| 72 |
}, |
| 73 |
{ |
| 74 |
critical => 0, |
| 75 |
data => "Digital Signature, Non Repudiation, Key Encipherment, Data Encipherment, Key Agreement, Certificate Sign, CRL Sign, Decipher Only", |
| 76 |
ln => "X509v3 Key Usage", |
| 77 |
nid => 83, |
| 78 |
oid => "2.5.29.15", |
| 79 |
sn => "keyUsage", |
| 80 |
}, |
| 81 |
{ |
| 82 |
critical => 0, |
| 83 |
data => "email:john.doe\@net-ssleay.example, URI:http://johndoe.net-ssleay.example, DNS:johndoe.net-ssleay.example, Registered ID:1.2.3.4, IP Address:192.168.0.2, IP Address:FD25:F814:AFB5:9873:0:0:0:2, othername: emailAddress::jd\@net-ssleay.example", |
| 84 |
ln => "X509v3 Subject Alternative Name", |
| 85 |
nid => 85, |
| 86 |
oid => "2.5.29.17", |
| 87 |
sn => "subjectAltName", |
| 88 |
}, |
| 89 |
{ |
| 90 |
critical => 0, |
| 91 |
data => "DB:74:94:3B:AE:1B:9A:5A:47:49:FE:E4:7B:C4:0D:D1:8C:A9:F6:BD", |
| 92 |
ln => "X509v3 Subject Key Identifier", |
| 93 |
nid => 82, |
| 94 |
oid => "2.5.29.14", |
| 95 |
sn => "subjectKeyIdentifier", |
| 96 |
}, |
| 97 |
], |
| 98 |
}, |
| 99 |
extkeyusage => { |
| 100 |
ln => [ |
| 101 |
"TLS Web Server Authentication", |
| 102 |
"TLS Web Client Authentication", |
| 103 |
"Code Signing", |
| 104 |
"E-mail Protection", |
| 105 |
"Time Stamping", |
| 106 |
"OCSP Signing", |
| 107 |
"ipsec Internet Key Exchange", |
| 108 |
"Microsoft Individual Code Signing", |
| 109 |
"Microsoft Commercial Code Signing", |
| 110 |
"Microsoft Trust List Signing", |
| 111 |
"Microsoft Encrypted File System", |
| 112 |
], |
| 113 |
nid => [129 .. 133, 180, 1022, 134, 135, 136, 138], |
| 114 |
oid => [ |
| 115 |
"1.3.6.1.5.5.7.3.1", |
| 116 |
"1.3.6.1.5.5.7.3.2", |
| 117 |
"1.3.6.1.5.5.7.3.3", |
| 118 |
"1.3.6.1.5.5.7.3.4", |
| 119 |
"1.3.6.1.5.5.7.3.8", |
| 120 |
"1.3.6.1.5.5.7.3.9", |
| 121 |
"1.3.6.1.5.5.7.3.17", |
| 122 |
"1.3.6.1.4.1.311.2.1.21", |
| 123 |
"1.3.6.1.4.1.311.2.1.22", |
| 124 |
"1.3.6.1.4.1.311.10.3.1", |
| 125 |
"1.3.6.1.4.1.311.10.3.4", |
| 126 |
"1.3.6.1.5.5.7.3.13", |
| 127 |
"1.3.6.1.5.5.7.3.14", |
| 128 |
], |
| 129 |
sn => [ |
| 130 |
"serverAuth", |
| 131 |
"clientAuth", |
| 132 |
"codeSigning", |
| 133 |
"emailProtection", |
| 134 |
"timeStamping", |
| 135 |
"OCSPSigning", |
| 136 |
"ipsecIKE", |
| 137 |
"msCodeInd", |
| 138 |
"msCodeCom", |
| 139 |
"msCTLSign", |
| 140 |
"msEFS", |
| 141 |
], |
| 142 |
}, |
| 143 |
fingerprint => { |
| 144 |
md5 => "D8:B8:96:CB:80:3B:B1:59:E6:D8:D7:DF:82:9F:B9:4A", |
| 145 |
sha1 => "0E:54:23:5B:C3:59:90:A1:C6:8C:59:60:A9:64:EF:38:36:08:2C:C9", |
| 146 |
}, |
| 147 |
hash => { |
| 148 |
issuer => { dec => 2397076613, hex => "8EE07C85" }, |
| 149 |
issuer_and_serial => { dec => 2318623373, hex => "8A33628D" }, |
| 150 |
subject => { dec => 1333988679, hex => "4F830D47" }, |
| 151 |
}, |
| 152 |
issuer => { |
| 153 |
count => 4, |
| 154 |
entries => [ |
| 155 |
{ |
| 156 |
data => "PL", |
| 157 |
data_utf8_decoded => "PL", |
| 158 |
ln => "countryName", |
| 159 |
nid => 14, |
| 160 |
oid => "2.5.4.6", |
| 161 |
sn => "C", |
| 162 |
}, |
| 163 |
{ |
| 164 |
data => "Net-SSLeay", |
| 165 |
data_utf8_decoded => "Net-SSLeay", |
| 166 |
ln => "organizationName", |
| 167 |
nid => 17, |
| 168 |
oid => "2.5.4.10", |
| 169 |
sn => "O", |
| 170 |
}, |
| 171 |
{ |
| 172 |
data => "Test Suite", |
| 173 |
data_utf8_decoded => "Test Suite", |
| 174 |
ln => "organizationalUnitName", |
| 175 |
nid => 18, |
| 176 |
oid => "2.5.4.11", |
| 177 |
sn => "OU", |
| 178 |
}, |
| 179 |
{ |
| 180 |
data => "Intermediate CA", |
| 181 |
data_utf8_decoded => "Intermediate CA", |
| 182 |
ln => "commonName", |
| 183 |
nid => 13, |
| 184 |
oid => "2.5.4.3", |
| 185 |
sn => "CN", |
| 186 |
}, |
| 187 |
], |
| 188 |
oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/CN=Intermediate CA", |
| 189 |
print_rfc2253 => "CN=Intermediate CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 190 |
print_rfc2253_utf8 => "CN=Intermediate CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 191 |
print_rfc2253_utf8_decoded => "CN=Intermediate CA,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 192 |
}, |
| 193 |
keyusage => [ |
| 194 |
"digitalSignature", |
| 195 |
"nonRepudiation", |
| 196 |
"keyEncipherment", |
| 197 |
"dataEncipherment", |
| 198 |
"keyAgreement", |
| 199 |
"keyCertSign", |
| 200 |
"cRLSign", |
| 201 |
"decipherOnly", |
| 202 |
], |
| 203 |
not_after => "2038-01-01T00:00:00Z", |
| 204 |
not_before => "2020-01-01T00:00:00Z", |
| 205 |
ns_cert_type => [], |
| 206 |
pubkey_alg => "rsaEncryption", |
| 207 |
pubkey_bits => 2048, |
| 208 |
pubkey_security_bits => 112, |
| 209 |
pubkey_id => 6, |
| 210 |
pubkey_size => 256, |
| 211 |
serial => { dec => 2, hex => "02", long => 2 }, |
| 212 |
signature_alg => "sha256WithRSAEncryption", |
| 213 |
subject => { |
| 214 |
altnames => [ |
| 215 |
1, |
| 216 |
"john.doe\@net-ssleay.example", |
| 217 |
6, |
| 218 |
"http://johndoe.net-ssleay.example", |
| 219 |
2, |
| 220 |
"johndoe.net-ssleay.example", |
| 221 |
8, |
| 222 |
"1.2.3.4", |
| 223 |
7, |
| 224 |
"\xC0\xA8\0\2", |
| 225 |
7, |
| 226 |
pack("H*","fd25f814afb598730000000000000002"), |
| 227 |
0, |
| 228 |
"jd\@net-ssleay.example", |
| 229 |
], |
| 230 |
count => 14, |
| 231 |
entries => [ |
| 232 |
{ |
| 233 |
data => "PL", |
| 234 |
data_utf8_decoded => "PL", |
| 235 |
ln => "countryName", |
| 236 |
nid => 14, |
| 237 |
oid => "2.5.4.6", |
| 238 |
sn => "C", |
| 239 |
}, |
| 240 |
{ |
| 241 |
data => "Net-SSLeay", |
| 242 |
data_utf8_decoded => "Net-SSLeay", |
| 243 |
ln => "organizationName", |
| 244 |
nid => 17, |
| 245 |
oid => "2.5.4.10", |
| 246 |
sn => "O", |
| 247 |
}, |
| 248 |
{ |
| 249 |
data => "Test Suite", |
| 250 |
data_utf8_decoded => "Test Suite", |
| 251 |
ln => "organizationalUnitName", |
| 252 |
nid => 18, |
| 253 |
oid => "2.5.4.11", |
| 254 |
sn => "OU", |
| 255 |
}, |
| 256 |
{ |
| 257 |
data => "net-ssleay.example", |
| 258 |
data_utf8_decoded => "net-ssleay.example", |
| 259 |
ln => "dnQualifier", |
| 260 |
nid => 174, |
| 261 |
oid => "2.5.4.46", |
| 262 |
sn => "dnQualifier", |
| 263 |
}, |
| 264 |
{ |
| 265 |
data => "State", |
| 266 |
data_utf8_decoded => "State", |
| 267 |
ln => "stateOrProvinceName", |
| 268 |
nid => 16, |
| 269 |
oid => "2.5.4.8", |
| 270 |
sn => "ST", |
| 271 |
}, |
| 272 |
{ |
| 273 |
data => "John Doe", |
| 274 |
data_utf8_decoded => "John Doe", |
| 275 |
ln => "commonName", |
| 276 |
nid => 13, |
| 277 |
oid => "2.5.4.3", |
| 278 |
sn => "CN", |
| 279 |
}, |
| 280 |
{ |
| 281 |
data => 1234, |
| 282 |
data_utf8_decoded => 1234, |
| 283 |
ln => "serialNumber", |
| 284 |
nid => 105, |
| 285 |
oid => "2.5.4.5", |
| 286 |
sn => "serialNumber", |
| 287 |
}, |
| 288 |
{ |
| 289 |
data => "Locality", |
| 290 |
data_utf8_decoded => "Locality", |
| 291 |
ln => "localityName", |
| 292 |
nid => 15, |
| 293 |
oid => "2.5.4.7", |
| 294 |
sn => "L", |
| 295 |
}, |
| 296 |
{ |
| 297 |
data => "Mr.", |
| 298 |
data_utf8_decoded => "Mr.", |
| 299 |
ln => "title", |
| 300 |
nid => 106, |
| 301 |
oid => "2.5.4.12", |
| 302 |
sn => "title", |
| 303 |
}, |
| 304 |
{ |
| 305 |
data => "John", |
| 306 |
data_utf8_decoded => "John", |
| 307 |
ln => "givenName", |
| 308 |
nid => 99, |
| 309 |
oid => "2.5.4.42", |
| 310 |
sn => "GN", |
| 311 |
}, |
| 312 |
{ |
| 313 |
data => "JD", |
| 314 |
data_utf8_decoded => "JD", |
| 315 |
ln => "initials", |
| 316 |
nid => 101, |
| 317 |
oid => "2.5.4.43", |
| 318 |
sn => "initials", |
| 319 |
}, |
| 320 |
{ |
| 321 |
data => "John Q. Public", |
| 322 |
data_utf8_decoded => "John Q. Public", |
| 323 |
ln => "pseudonym", |
| 324 |
nid => 510, |
| 325 |
oid => "2.5.4.65", |
| 326 |
sn => "pseudonym", |
| 327 |
}, |
| 328 |
{ |
| 329 |
data => "Sr.", |
| 330 |
data_utf8_decoded => "Sr.", |
| 331 |
ln => "generationQualifier", |
| 332 |
nid => 509, |
| 333 |
oid => "2.5.4.44", |
| 334 |
sn => "generationQualifier", |
| 335 |
}, |
| 336 |
{ |
| 337 |
data => "john.doe\@net-ssleay.example", |
| 338 |
data_utf8_decoded => "john.doe\@net-ssleay.example", |
| 339 |
ln => "emailAddress", |
| 340 |
nid => 48, |
| 341 |
oid => "1.2.840.113549.1.9.1", |
| 342 |
sn => "emailAddress", |
| 343 |
}, |
| 344 |
], |
| 345 |
oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/dnQualifier=net-ssleay.example/ST=State/CN=John Doe/serialNumber=1234/L=Locality/title=Mr./GN=John/initials=JD/pseudonym=John Q. Public/generationQualifier=Sr./emailAddress=john.doe\@net-ssleay.example", |
| 346 |
print_rfc2253 => "emailAddress=john.doe\@net-ssleay.example,generationQualifier=Sr.,pseudonym=John Q. Public,initials=JD,GN=John,title=Mr.,L=Locality,serialNumber=1234,CN=John Doe,ST=State,dnQualifier=net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 347 |
print_rfc2253_utf8 => "emailAddress=john.doe\@net-ssleay.example,generationQualifier=Sr.,pseudonym=John Q. Public,initials=JD,GN=John,title=Mr.,L=Locality,serialNumber=1234,CN=John Doe,ST=State,dnQualifier=net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 348 |
print_rfc2253_utf8_decoded => "emailAddress=john.doe\@net-ssleay.example,generationQualifier=Sr.,pseudonym=John Q. Public,initials=JD,GN=John,title=Mr.,L=Locality,serialNumber=1234,CN=John Doe,ST=State,dnQualifier=net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", |
| 349 |
}, |
| 350 |
version => 2, |
| 351 |
} |