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 <[email protected]> wrote: >> From: openssl-users [mailto:[email protected]] On Behalf >> Of Jerry OELoo >> Sent: Tuesday, January 20, 2015 00:34 >> To: [email protected] >> Subject: [openssl-users] Read cer file failed >> >> 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 > > What's the platform? What are the parameters to the fopen that you used to > get fp? > > -- > Michael Wojcik > Technology Specialist, Micro Focus > > > > This message has been scanned for malware by Websense. www.websense.com > _______________________________________________ > openssl-users mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users -- Rejoice,I Desire! _______________________________________________ openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
