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

Name

Description

ctx

SSL context whose verification store is updated.

CAfile

Path to a PEM file containing one or more CA certificates.

Created with MrDocs