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

Load a certificate into an SSL context from a DER encoding&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;ASN1(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int len,
    unsigned char const* d);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context that receives the certificate&period;
| *len*
| Number of bytes at `d&period;`
| *d*
| DER&hyphen;encoded X&period;509 certificate&period;
|===


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