# exported via command: perl examples/x509_cert_details.pl -dump -pem t/data/verify-cert.cert.pem > t/data/verify-cert.cert.pem_dump # hashref dumped via Data::Dump { cdp => [], certificate_type => 305, digest_sha1 => { pubkey => pack("H*","6c04300b89fdd566b291c90161a982e849f149c8"), x509 => pack("H*","b01e01d619bcec62ef10ccb75460bb0cc6b2bce0"), }, extensions => { count => 5, entries => [ { critical => 1, data => "Digital Signature, Key Encipherment", ln => "X509v3 Key Usage", nid => 83, oid => "2.5.29.15", sn => "keyUsage", }, { critical => 0, data => "TLS Web Server Authentication, TLS Web Client Authentication", ln => "X509v3 Extended Key Usage", nid => 126, oid => "2.5.29.37", sn => "extendedKeyUsage", }, { critical => 0, data => "6C:04:30:0B:89:FD:D5:66:B2:91:C9:01:61:A9:82:E8:49:F1:49:C8", ln => "X509v3 Subject Key Identifier", nid => 82, oid => "2.5.29.14", sn => "subjectKeyIdentifier", }, { critical => 0, data => "Policy: 1.2.3.4.5", ln => "X509v3 Certificate Policies", nid => 89, oid => "2.5.29.32", sn => "certificatePolicies", }, { critical => 0, data => "email:john.doe\@net-ssleay.example, DNS:*.johndoe.net-ssleay.example, IP Address:192.168.0.3", ln => "X509v3 Subject Alternative Name", nid => 85, oid => "2.5.29.17", sn => "subjectAltName", }, ], }, extkeyusage => { ln => [ "TLS Web Server Authentication", "TLS Web Client Authentication", ], nid => [129, 130], oid => ["1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.2"], sn => ["serverAuth", "clientAuth"], }, fingerprint => { md5 => "3F:EE:91:43:6F:20:61:62:C6:AD:26:E9:ED:BF:F3:25", sha1 => "B0:1E:01:D6:19:BC:EC:62:EF:10:CC:B7:54:60:BB:0C:C6:B2:BC:E0", }, hash => { issuer => { dec => 1524484324, hex => "5ADDC8E4" }, issuer_and_serial => { dec => 3016836270, hex => "B3D144AE" }, subject => { dec => 1528789409, hex => "5B1F79A1" }, }, issuer => { count => 4, entries => [ { data => "PL", data_utf8_decoded => "PL", ln => "countryName", nid => 14, oid => "2.5.4.6", sn => "C", }, { data => "Net-SSLeay", data_utf8_decoded => "Net-SSLeay", ln => "organizationName", nid => 17, oid => "2.5.4.10", sn => "O", }, { data => "Test Suite", data_utf8_decoded => "Test Suite", ln => "organizationalUnitName", nid => 18, oid => "2.5.4.11", sn => "OU", }, { data => "Verification CA", data_utf8_decoded => "Verification CA", ln => "commonName", nid => 13, oid => "2.5.4.3", sn => "CN", }, ], oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/CN=Verification CA", print_rfc2253 => "CN=Verification CA,OU=Test Suite,O=Net-SSLeay,C=PL", print_rfc2253_utf8 => "CN=Verification CA,OU=Test Suite,O=Net-SSLeay,C=PL", print_rfc2253_utf8_decoded => "CN=Verification CA,OU=Test Suite,O=Net-SSLeay,C=PL", }, keyusage => ["digitalSignature", "keyEncipherment"], not_after => "2038-01-01T00:00:00Z", not_before => "2020-01-01T00:00:00Z", ns_cert_type => [], pubkey_alg => "rsaEncryption", pubkey_bits => 2048, pubkey_security_bits => 112, pubkey_id => 6, pubkey_size => 256, serial => { dec => 1, hex => "01", long => 1 }, signature_alg => "sha256WithRSAEncryption", subject => { altnames => [ 1, "john.doe\@net-ssleay.example", 2, "*.johndoe.net-ssleay.example", 7, "\xC0\xA8\0\3", ], count => 5, entries => [ { data => "PL", data_utf8_decoded => "PL", ln => "countryName", nid => 14, oid => "2.5.4.6", sn => "C", }, { data => "Net-SSLeay", data_utf8_decoded => "Net-SSLeay", ln => "organizationName", nid => 17, oid => "2.5.4.10", sn => "O", }, { data => "Test Suite", data_utf8_decoded => "Test Suite", ln => "organizationalUnitName", nid => 18, oid => "2.5.4.11", sn => "OU", }, { data => "*.johndoe.net-ssleay.example", data_utf8_decoded => "*.johndoe.net-ssleay.example", ln => "commonName", nid => 13, oid => "2.5.4.3", sn => "CN", }, { data => "john.doe\@net-ssleay.example", data_utf8_decoded => "john.doe\@net-ssleay.example", ln => "emailAddress", nid => 48, oid => "1.2.840.113549.1.9.1", sn => "emailAddress", }, ], oneline => "/C=PL/O=Net-SSLeay/OU=Test Suite/CN=*.johndoe.net-ssleay.example/emailAddress=john.doe\@net-ssleay.example", print_rfc2253 => "emailAddress=john.doe\@net-ssleay.example,CN=*.johndoe.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", print_rfc2253_utf8 => "emailAddress=john.doe\@net-ssleay.example,CN=*.johndoe.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", print_rfc2253_utf8_decoded => "emailAddress=john.doe\@net-ssleay.example,CN=*.johndoe.net-ssleay.example,OU=Test Suite,O=Net-SSLeay,C=PL", }, version => 2, }