boost::corosio::tls_context::set_verify_depth

Set the maximum certificate chain verification depth.

Synopsis

std::error_code
set_verify_depth(int depth);

Description

Limits how many intermediate certificates can appear between the peer certificate and a trusted root. The default is typically 100, which is sufficient for most certificate chains.

Return Value

Success, or an error if the depth is invalid.

Parameters

Name Description

depth

Maximum number of intermediate certificates allowed.

Created with MrDocs