Re: In-memory SSL_CTX_use_certificate_chain_file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mar 17, 2019, at 7:55 PM, J Decker <d3ck0r@xxxxxxxxx> wrote:

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

Yeah, but then I have to determine how many certs are in the bundle, parse it, etc. I was hoping to get a function that does all of that in one fell swoop like the ..._file() function.

I mean, I guess I can copy/paste and tweak for now. Would a refactor in a PR be of interest?

-FG



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux