[#SSL_CTX_check_private_key]
= SSL&lowbar;CTX&lowbar;check&lowbar;private&lowbar;key
:mrdocs:

Verify that the private key configured on an SSL&lowbar;CTX matches its certificate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;check&lowbar;private&lowbar;key(xref:SSL_CTX.adoc[SSL&lowbar;CTX] const* ctx);
----

== Return Value

1 if the key matches the certificate (or neither is set), or 0 on mismatch&sol;error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose default certificate and private key are compared&period;
|===


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