[#SSL_CTX_use_RSAPrivateKey] = SSL_CTX_use_RSAPrivateKey :mrdocs: Assign an RSA private key to an SSL context (deprecated; use SSL_CTX_use_PrivateKey). == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int SSL_CTX_use_RSAPrivateKey( xref:SSL_CTX.adoc[SSL_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. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | SSL context that receives the key; the RSA reference count is incremented. | *rsa* | RSA private key that must match any certificate already set on `ctx.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#