SSL_CTX_set_default_verify_paths

Load the default CA file, directory, and store into an SSL context's trust store.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_set_default_verify_paths(SSL_CTX* ctx);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxSSL context whose verification locations are set to the OpenSSL defaults (or SSL_CERT_* env overrides).