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

FreeBSD Manual Pages

  
 
  

home | help
SSL_GET_CERTIFICATE(3)	 BSD 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(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_check_private_key(3), SSL_use_certificate(3)

HISTORY
     SSL_get_certificate() and SSL_get_privatekey() are	available in all ver-
     sions of OpenSSL.

BSD			       December	10, 2016			   BSD

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.1-RELEASE+and+Ports>

home | help