Hello, i try to decode X509 Certificates (as stored in userCertificate;binary) using this test-script:
use Convert::ASN1; use Data::Dump qw(dump); my $cert; { open( FILE, $ARGV[0] ) or die "cannot open $ARGV[0]:$!\n"; local $/; binmode(FILE); $cert=<FILE>; } $asn = Convert::ASN1->new; $out = $asn->decode($cert); print dump($out); Unfourtunately, the only printout I get is "undef" using the attached file. I checked for the UTF8-problem, but the certificate-file is just the same when I export the public key directly from Inetnetexplorer in DER-format. I'm using perl 5.8.6, Convert::ASN1 1.20. Please point me to my error. Thanks in advance, Alexander Jung
g023314.der.cer
Description: application/x509-ca-cert