|
NAMESSL_get_certificate ,
SSL_get_privatekey —
get SSL certificate and private key
SYNOPSIS#include <openssl/ssl.h>
X509 *
EVP_PKEY *
DESCRIPTIONThese functions retrieve certificate and key data from an SSL object. They return internal pointers that must not be freed by the application program.RETURN VALUESSSL_get_certificate () returns the active X.509
certificate currently used by ssl or
NULL if none is active.
SEE ALSOssl(3), SSL_check_private_key(3), SSL_use_certificate(3)HISTORYSSL_get_certificate () first appeared in SSLeay 0.5.2a.
SSL_get_privatekey () first appeared in SSLeay 0.8.0.
Both functions have been available since OpenBSD 2.4.
Visit the GSP FreeBSD Man Page Interface. |