Thanks Michael's information.
I am on Ubuntu OS, And I found that If I fopen file with rb, it will work fine.
On Tue, Jan 20, 2015 at 9:57 PM, Michael Wojcik
wrote:
>> From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf
>> Of Jerry OELoo
>> Sent: Tuesday, January 20, 2015 00:
> From: openssl-users On Behalf Of Jerry OELoo
> Sent: Tuesday, January 20, 2015 00:34
> I am reading cer file into X509 object,
> http://SVRSecure-G3-aia.verisign.com/SVRSecureG3.cer
>
> cert = d2i_X509_fp(fp, NULL);
> it will return fail, as below
>
> Error: error:0D07207B:asn1 encoding routin
> From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf
> Of Jerry OELoo
> Sent: Tuesday, January 20, 2015 00:34
> To: openssl-users@openssl.org
> Subject: [openssl-users] Read cer file failed
>
> I am reading cer file into X509 object,
> http://SVRSecure-G3-aia.verisign.com/SVR