pub fn load_native_certs() -> Result<Vec<Certificate>, Error>
Expand description

Load root certificates found in the platform’s native certificate store.

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.