1 .\" $OpenBSD: SSL_get_certificate.3,v 1.1 2016/12/10 13:54:32 schwarze Exp $
3 .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: December 10 2016 $
18 .Dt SSL_GET_CERTIFICATE 3
21 .Nm SSL_get_certificate ,
22 .Nm SSL_get_privatekey
23 .Nd get SSL certificate and private key
27 .Fo SSL_get_certificate
31 .Fo SSL_get_privatekey
35 These functions retrieve certificate and key data from an
38 They return internal pointers that must not be freed by the application
41 .Fn SSL_get_certificate
42 returns the active X.509 certificate currently used by
48 .Fn SSL_get_privatekey
49 returns the active private key currently used by
55 .Xr SSL_check_private_key 3 ,
56 .Xr SSL_use_certificate 3
58 .Fn SSL_get_certificate
60 .Fn SSL_get_privatekey
61 are available in all versions of OpenSSL.