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