Re: PEM stored in memory, not in file

2001-08-29 Thread Vadim Fedukovich
On Mon, 27 Aug 2001, Arno Puder wrote: > > Hi, > > certificates and private keys are usually stored in PEM-formatted files > and are loaded using the functions SSL_CTX_use_certificate_file() and > SSL_CTX_use_PrivateKey_file(). > > If I want to hard code the keys in my application, such as > > ch

Re: PEM stored in memory, not in file

2001-08-27 Thread Dr S N Henson
Arno Puder wrote: > > Hi, > > certificates and private keys are usually stored in PEM-formatted files > and are loaded using the functions SSL_CTX_use_certificate_file() and > SSL_CTX_use_PrivateKey_file(). > > If I want to hard code the keys in my application, such as > > char* certificate

Re: PEM stored in memory, not in file

2001-08-27 Thread James A. Russo
Arno, You could use a memory bio. I had to do something like this when I stored my keys PEM encoded into a gdbm database. ie: BIO *in; char *certificate = "BEGIN CERT" in = BIO_new(BIO_s_mem()); if (BIO_write(certificate,strlen(certificate))<0) { BIO_free(in);