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

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.