[−][src]Function rustls_native_certs::build_native_certs
pub fn build_native_certs<B: RootStoreBuilder>(
builder: &mut B
) -> Result<(), Error>
Loads root certificates found in the platform's native certificate store, executing callbacks on the provided builder.
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.