Hi,
Given a CRL file, how to detect its format. whether it is in PEM encoded
format or ASN1.
Thanks,
Arun
Hi,
One simple and efficient method to distinguish between PEM and DER
encoding for a CRL or a certificate is to read the first byte : if it's
equal to 0x30 then this DER (this is the start of an ASN.1 Sequence) ,
otherwise it is PEM encoded.
This works ONLY if you are sure that the given
On Thu, Jun 03, 2010, Mounir IDRASSI wrote:
Hi,
One simple and efficient method to distinguish between PEM and DER encoding
for a CRL or a certificate is to read the first byte : if it's equal to
0x30 then this DER (this is the start of an ASN.1 Sequence) , otherwise it
is PEM encoded.
Thanks!
On Thu, Jun 3, 2010 at 4:54 PM, Dr. Stephen Henson st...@openssl.orgwrote:
On Thu, Jun 03, 2010, Mounir IDRASSI wrote:
Hi,
One simple and efficient method to distinguish between PEM and DER
encoding
for a CRL or a certificate is to read the first byte : if it's equal to
0x30