boost::corosio::tls_context::use_certificate_chain

Load a certificate chain from a memory buffer.

Synopsis

std::error_code
use_certificate_chain(std::string_view chain);

Description

Loads the entity certificate followed by intermediate CA certificates. The chain should be ordered from leaf to root (excluding the root). This is the typical format for PEM certificate bundles.

Return Value

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

Parameters

Name Description

chain

The certificate chain data in PEM format (concatenated certificates).

See Also

use_certificate_chain_file

Created with MrDocs