[#SSL_CTX_get0_privatekey]
= SSL&lowbar;CTX&lowbar;get0&lowbar;privatekey
:mrdocs:

Return the private key configured on an SSL context (if any)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]*
SSL&lowbar;CTX&lowbar;get0&lowbar;privatekey(xref:SSL_CTX.adoc[SSL&lowbar;CTX] const* ctx);
----

== Return Value

EVP&lowbar;PKEY for the context&apos;s local identity, or NULL&semi; do not free&period;

== Parameters

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


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