openssl-users  

Re: Windows/I18N: Unicode characters in cert filenames

Dr. Stephen Henson
Wed, 03 Feb 2010 11:38:20 -0800

On Wed, Feb 03, 2010, Paul Clark wrote:

>
> 2) Is there a way to push a certificate into an X509_STORE from text that 
> I've read as PEM using my own (fixed up) file reader?  Or any other way to 
> establish a certificate chain in memory to verify from?
>

You can read a PEM file from an opened fp using PEM_read_X509(). From that you
get an X509 structure which you can add using X509_STORE_add_cert().

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org