boost::corosio::tls_context::add_verify_path

Add a directory of CA certificates for verification.

Synopsis

std::error_code
add_verify_path(std::string_view path);

Description

Adds a directory containing CA certificate files. Each file must contain a single certificate in PEM format, named using the subject name hash (as generated by openssl rehash or c_rehash).

Example

ctx.add_verify_path( "/etc/ssl/certs" );

Return Value

Success, or an error if the directory is invalid.

Parameters

Name Description

path

Path to the directory containing hashed CA certificates.

See Also

load_verify_file

set_default_verify_paths

Created with MrDocs