Function load_validated_native_certs
pub fn load_validated_native_certs(
allow_bundled_fallback: bool,
) -> Result<(Vec<CertificateDer<'static>>, bool), Box<dyn Error + Send + Sync>>Available on crate features
crypto and native-certs and std only.Expand description
Read and validate the native roots and environment-supplied extra roots once.
Returns the deduplicated anchors and whether bundled roots supplied the base
store. Set allow_bundled_fallback on initial load if bundled roots are
acceptable on an empty system. Passing the returned flag on subsequent
reads prevents an empty system store from expanding an existing trust policy.
Explicit replacement paths always take precedence. This operation may block.