[#SSL_get_privatekey]
= SSL&lowbar;get&lowbar;privatekey
:mrdocs:

Return the local private key configured on `ssl` (borrowed pointer)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:evp_pkey_st.adoc[evp&lowbar;pkey&lowbar;st]*
SSL&lowbar;get&lowbar;privatekey(xref:SSL.adoc[SSL] const* ssl);
----

== Return Value

EVP&lowbar;PKEY used for the local certificate, or NULL if unset&period;

== Parameters

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


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