Function load_certs_from_paths
pub fn load_certs_from_paths(
file: Option<&Path>,
dir: Option<&Path>,
) -> CertificateResultExpand description
Load certificates from the given paths.
If both are None, returns an empty CertificateResult.
If file is Some, it is always used, so it must be a path to an existing,
accessible file from which certificates can be loaded successfully. While parsing,
the rustls-pki-types PEM parser will ignore parts of the file which are
not considered part of a certificate. Certificates which are not in the right
format (PEM) or are otherwise corrupted may get ignored silently.
If dir is defined, a directory must exist at this path, and all files
contained in it must be loaded successfully, subject to the rules outlined above for file.
The directory is not scanned recursively and may be empty.