[][src]Function rustls_native_certs::load_native_certs

pub fn load_native_certs() -> PartialResult<RootCertStore, Error>

Loads root certificates found in the platform's native certificate store.

On success, this returns a rustls::RootCertStore loaded with a snapshop of the root certificates found on this platform. This function fails in a platform-specific way, expressed in a std::io::Error. It may produce partial output.

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.