Is there a way to retrieve the certificate from SSL_CTX?

Wim Lewis wiml at omnigroup.com
Tue Mar 5 19:28:03 UTC 2019


On 5. mar. 2019, at 10:14 f.h., Paul Smith <paul at mad-scientist.net> wrote:
> E.g., I'm adding my certificate with SSL_CTX_use_certificate(); is there a way to get it back out?

Does SSL_CTX_get0_certificate() do what you need?

(The "get0" (vs "get") indicates its reference-counting semantics.)




More information about the openssl-users mailing list