pub fn load_native_certs() -> Result<Vec<CertificateDer<'static>>, Error>
Expand description
Load root certificates found in the platform’s native certificate store.
If the SSL_CERT_FILE environment variable is set, certificates (in PEM format) are read from that file instead.
This function fails in a platform-specific way, expressed in a std::io::Error
.
This function can be expensive: on some platforms it involves loading and parsing a ~300KB disk file. It’s therefore prudent to call this sparingly.