boost::corosio::tls_context::use_pkcs12

Load credentials from a PKCS#12 bundle in memory.

Synopsis

std::error_code
use_pkcs12(
    std::string_view data,
    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.

Return Value

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

Parameters

Name Description

data

The PKCS#12 bundle data.

passphrase

The password protecting the bundle.

See Also

use_pkcs12_file

Created with MrDocs