Providing certificates/keys as a buffer rather than a filename

2010-07-21 Thread Aravind GJ
Hi, In my project, the keys and certificates are not stored as a file, but are present in a buffer. How can I instrcut OpenSSL to read from the buffer rather than a file? SSL_use_PrivateKey_file, SSL_CTX_use_certificate_file needs file name as the input parameter. While functions like

Re: Providing certificates/keys as a buffer rather than a filename

2010-07-21 Thread Bruce Stephens
Aravind GJ aravin...@gmail.com writes: [...] While functions like SSL_use_PrivateKey use EVP_PKEY structure, but to get that structure, I need to use BIO APIs which again takes filename as input. See BIO_new_mem_buf(). (There are other ways to construct EVP_PKEYs without reading from a