Function brane_cfg::certs::load_cert

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

Loads a given certificate file.

§Arguments

  • certfile: Path to the certificate file to load.

§Returns

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

§Errors

This function errors if we failed to read the file.