boost::corosio::tls_context::use_certificate_chain_file

Load a certificate chain from a file.

Synopsis

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

Description

Loads the entity certificate followed by intermediate CA certificates from a PEM file. The file should contain concatenated PEM certificates ordered from leaf to root (excluding the root).

Example

// Load certificate chain (cert + intermediates)
ctx.use_certificate_chain_file( "fullchain.pem" );

Return Value

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

Parameters

Name Description

filename

Path to the certificate chain file.

See Also

use_certificate_chain

Created with MrDocs