SSL_CTX_get0_privatekey

Return the private key configured on an SSL context (if any).

Synopsis

Declared in <openssl/ssl.h>

EVP_PKEY*
SSL_CTX_get0_privatekey(SSL_CTX const* ctx);

Return Value

EVP_PKEY for the context's local identity, or NULL; do not free.

Parameters

NameDescription
ctxSSL context to query.