On Sun, Mar 17, 2019 at 4:46 PM Felipe Gasper <felipe@xxxxxxxxxxxxxxxx> wrote:
Buffer, not buffet. Silly autocorrect!
-F
> On Mar 17, 2019, at 7:21 PM, Felipe Gasper <felipe@xxxxxxxxxxxxxxxx> 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