SSL_CTX_load_verify_file

Load trusted CA certificates from a PEM file into an SSL context.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_load_verify_file(
    SSL_CTX* ctx,
    char const* CAfile);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxSSL context whose verification store is updated.
CAfilePath to a PEM file containing one or more CA certificates.