Function brane_cfg::certs::load_identity

source ·
pub fn load_identity(
    file: impl AsRef<Path>,
) -> Result<(Vec<Certificate>, PrivateKey), Error>
Expand description

Loads the an identity file (=certs + key) from the given single file.

§Arguments

  • file: Path to the certificate/key file to load.

§Returns

A new pair of certificates and the key.

§Errors

This function errors if we failed to read the files.