Return the local certificate configured on an SSL context (if any).

Synopsis

Declared in <openssl/ssl.h>

X509*
SSL_CTX_get0_certificate(SSL_CTX const* ctx);

Return Value

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

Parameters

Name

Description

ctx

SSL context to query.

Created with MrDocs