In-memory SSL_CTX_use_certificate_chain_file?

J Decker d3ck0r at gmail.com
Sun Mar 17 23:55:11 UTC 2019


On Sun, Mar 17, 2019 at 4:46 PM Felipe Gasper <felipe at felipegasper.com>
wrote:

> Buffer, not buffet. Silly autocorrect!
>
> -F
>
> > On Mar 17, 2019, at 7:21 PM, Felipe Gasper <felipe at felipegasper.com>
> wrote:
> >
> > Hello,
> >
> > Is there any equivalent to SSL_CTX_use_certificate_chain_file for a PEM
> buffet that’s already in memory?
>
SSL_CTX_use_certificate( ses->ctx, sk_X509_value( ses->cert->chain, 0 ) );
?
SSL_CTX_add_extra_chain_cert( ses->ctx, sk_X509_value( ses->cert->chain, n
) );

and/or maybe

X509_STORE *store = SSL_CTX_get_cert_store( ses->ctx );
X509_STORE_add_cert( store, cert );

>
> > Thank you!
> >
> > -F
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20190317/be2da0dc/attachment.html>


More information about the openssl-users mailing list