[#SSL_CTX_use_PrivateKey] = SSL_CTX_use_PrivateKey :mrdocs: Assign an EVP_PKEY private key to an SSL context. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SSL_CTX_use_PrivateKey( xref:SSL_CTX.adoc[SSL_CTX]* ctx, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | SSL context that receives the key; the key's reference count is incremented on success. | *pkey* | Private key that must match any certificate already set on `ctx.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#