Convert::ASN1 - Decode error

P

patg007

Hi all,

I want to decode a .der file. I upgrade my version to 0.19 but I still
have the same trouble, when I use Data Dumper it gives :
'error' => 'decode error at
/usr/lib/perl5/site_perl/5.8.1/Convert/ASN1/_decode.pm line 123
but asn_dump works find, my asn.1 seems ok.

In fact when I do a decode like that $data =
$structure->decode($dataToCheck);
Dumper of $data gives $VAR1 = undef;
So after when I want to do a $data->{'field1'}->{'field2'}; of course
it prints nothing.

I set the option $asn->configure( decode => { encoding => DER } );
before, don't know if the problem occurs because of that.

I would like to know if somebody had the same problem before and from
what it could come from. I can send my little program if somebody wants
more details.

Regards,
Pat.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top