[#SSL_CTX_use_certificate_chain_file]
= SSL&lowbar;CTX&lowbar;use&lowbar;certificate&lowbar;chain&lowbar;file
:mrdocs:

Load a PEM certificate chain from `file` into `ctx&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&lowbar;chain&lowbar;file(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    char const* file);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context that receives the end&hyphen;entity certificate and any following CA certs&period;
| *file*
| Path to a PEM file containing the leaf certificate followed by optional intermediates&period;
|===


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