in reply to Extract data from certificate with Crypt::X509

Well, see https://metacpan.org/pod/Crypt::X509#new-OPTIONS its  ->new( cert => $cert );

Replies are listed 'Best First'.
Re^2: Extract data from certificate with Crypt::X509
by LoraIlieva (Acolyte) on Aug 17, 2016 at 08:30 UTC

    Thanks. I've corrected it but now I get a different error:

    Error on parsing certificate: decode error 04<=>30 0 8 at ...<path>.. +./Convert/ASN1/_decode.pm line 113.

    I've tried with other certificate but the error is still the same

    ---Edit

    The question was answered here: http://stackoverflow.com/questions/38991171/extract-data-from-certificate-with-perl-cryptx509

    Before decoding from Base64, the certificate header and footer (Begin, End Certificate) should be removed.