pub fn load_all(
file: impl AsRef<Path>,
) -> Result<(Vec<Certificate>, Vec<PrivateKey>), Error>
Expand description
Loads a given .pem file by extracting all the certificates and keys from it.
§Arguments
file
: Path to the certificate/key (or both, or neither) file to load.
§Returns
A list of all certificates and keys found in the file. Either may be empty if we failed to find either in the given file.
§Errors
This function errors if we failed to access/read the file.