boost::corosio::tls_context::use_pkcs12_file

Load credentials from a PKCS#12 file.

Synopsis

std::error_code
use_pkcs12_file(
    std::string_view filename,
    std::string_view passphrase);

Description

PKCS#12 (also known as PFX) is a binary format that bundles a certificate, private key, and optionally intermediate certificates into a single password‐protected file. This is common on Windows and for certificates exported from browsers.

Example

ctx.use_pkcs12_file( "credentials.pfx", "secret" );

Return Value

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

Parameters

Name Description

filename

Path to the PKCS#12 file.

passphrase

The password protecting the file.

See Also

use_pkcs12

Created with MrDocs