GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SSL_GET_CERTIFICATE(3) FreeBSD Library Functions Manual SSL_GET_CERTIFICATE(3)

SSL_get_certificate, SSL_get_privatekey
get SSL certificate and private key

#include <openssl/ssl.h>

X509 *
SSL_get_certificate(const SSL *ssl);

EVP_PKEY *
SSL_get_privatekey(const SSL *ssl);

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

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.

ssl(3), SSL_check_private_key(3), SSL_use_certificate(3)

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.
June 12, 2019 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.