boost::corosio::tls_context::load_verify_file

Load CA certificates from a file.

Synopsis

std::error_code
load_verify_file(std::string_view filename);

Description

Loads one or more CA certificates from a PEM file. The file may contain multiple concatenated PEM certificates.

Example

// Load a custom CA bundle
ctx.load_verify_file( "/etc/ssl/certs/ca-certificates.crt" );

Return Value

Success, or an error if the file could not be read or parsed.

Parameters

Name Description

filename

Path to a PEM file containing CA certificates.

See Also

add_certificate_authority

add_verify_path

Created with MrDocs