[#SSL_CTX_use_RSAPrivateKey]
= SSL&lowbar;CTX&lowbar;use&lowbar;RSAPrivateKey
:mrdocs:

Assign an RSA private key to an SSL context (deprecated&semi; use SSL&lowbar;CTX&lowbar;use&lowbar;PrivateKey)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
SSL&lowbar;CTX&lowbar;use&lowbar;RSAPrivateKey(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:RSA.adoc[RSA]* rsa);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context that receives the key&semi; the RSA reference count is incremented&period;
| *rsa*
| RSA private key that must match any certificate already set on `ctx&period;`
|===


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