Function brane_cfg::certs::load_keypair

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

Loads the server certificate / key pair from disk.

§Arguments

  • certfile: Path to the certificate file to load.
  • keyfile: Path to the keyfile to load.

§Returns

A new pair of certificates and the key.

§Errors

This function errors if we failed to read either of the files.