[#SSL_CTX_use_PrivateKey_ASN1] = SSL_CTX_use_PrivateKey_ASN1 :mrdocs: Install a private key of type `pk` from a DER buffer on an SSL context. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SSL_CTX_use_PrivateKey_ASN1( int pk, xref:SSL_CTX.adoc[SSL_CTX]* ctx, unsigned char const* d, long len); ---- == Return Value * 1 on success, or 0 on failure. * 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *pk* | Private‐key ASN.1 type such as EVP_PKEY_RSA or EVP_PKEY_EC. | *ctx* | SSL context that receives the key; it must match any certificate already set. | *d* | Buffer containing a DER‐encoded private key of type `pk.` | *len* | Length of `d` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#