[#SSL_get_certificate]
= SSL&lowbar;get&lowbar;certificate
:mrdocs:

Return the local certificate selected (or most recently set) for a connection&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:X509.adoc[X509]*
SSL&lowbar;get&lowbar;certificate(xref:SSL.adoc[SSL] const* ssl);
----

== Return Value

X509 identity certificate, or NULL if none is configured &sol; selected&semi; do not free&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| SSL connection to query&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
