brane_cfg::certsFunction 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.