Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

CRL parsing with Crypt::X509::CRL

by wpfontenot (Initiate)
on Sep 30, 2013 at 21:16 UTC ( #1056420=perlquestion: print w/replies, xml ) Need Help??
wpfontenot has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone give me an idication of why this code is throwing the error below?
#!/usr/bin/perl # use Convert::ASN1; use Crypt::X509::CRL; use Data::Dumper; $crl = "./ent.crl"; $decoded = Crypt::X509::CRL->new( crl => $crl ); if ( $decoded->error ) { warn "Error on parsing Certificate Revocation List: ", $decoded->error; } print Dumper ($decoded);
This error
Error on parsing Certificate Revocation List: decode error at /usr/loc +al/share/perl5/Convert/ASN1/ line 64. $VAR1 = bless( { '_error' => 'decode error at /usr/local/share/perl5/C +onvert/ASN1/ line 64. ' }, 'Crypt::X509::CRL' );

Replies are listed 'Best First'.
Re: CRL parsing with Crypt::X509::CRL
by BrowserUk (Pope) on Sep 30, 2013 at 21:49 UTC

    You seem to be expecting decode to load the crl from a file. It doesn't.

    It is expecting you to pass it a string into which you have already loaded the crl.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Thank you very much, I figured it would be a case of not seeing the forest for the trees.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1056420]
Approved by marto
LanX frowning!
[Corion]: Hi choroba, LanX!
[Corion]: LanX: Turn that frown upside down! ;)
[Eily]: hello people!
[choroba]: a bit early for harvest mite, isn't it?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2018-05-23 07:35 GMT
Find Nodes?
    Voting Booth?