Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SSL_GET_CERTIFICATE(3) FreeBSD Library Functions Manual	SSL_GET_CERTIFICATE(3)

NAME
     SSL_get_certificate, SSL_get_privatekey --	get SSL	certificate and	pri-
     vate key

SYNOPSIS
     #include <openssl/ssl.h>

     X509 *
     SSL_get_certificate(const SSL *ssl);

     EVP_PKEY *
     SSL_get_privatekey(const SSL *ssl);

DESCRIPTION
     These functions retrieve certificate and key data from an SSL object.
     They return internal pointers that	must not be freed by the application
     program.

RETURN VALUES
     SSL_get_certificate() returns the active X.509 certificate	currently used
     by	ssl or NULL if none is active.

     SSL_get_privatekey() returns the active private key currently used	by ssl
     or	NULL if	none is	active.

SEE ALSO
     ssl(3), SSL_check_private_key(3), SSL_use_certificate(3)

HISTORY
     SSL_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.

FreeBSD	13.0			 June 12, 2019			  FreeBSD 13.0

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SSL_get_certificate&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help