Function brane_cfg::certs::load_key

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

Loads a given key file.

§Arguments

  • keyfile: Path to the key file to load.

§Returns

A list of all keys found in the file. May be empty if we failed to parse any.

§Errors

This function errors if we failed to read the file.