Function kvarn::host::get_certified_key

source ·
pub fn get_certified_key(
    cert_path: impl AsRef<str>,
    private_key_path: impl AsRef<str>
) -> Result<CertKeyPair, CertificateError>
Available on crate feature https only.
Expand description

Extracts a [sign::CertifiedKey] from cert_path and private_key_path.

Errors

Will return any errors while reading the files, or any parsing errors.