[#SSL_CTX_use_certificate]
= SSL&lowbar;CTX&lowbar;use&lowbar;certificate
:mrdocs:

Set the end&hyphen;entity certificate used by an SSL context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;use&lowbar;certificate(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:X509.adoc[X509]* x);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context that receives the certificate&period;
| *x*
| Certificate to install&semi; reference count is incremented on success&period;
|===


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