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
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
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);