Skip to main content

shared_extra_trust_anchors_async

Function shared_extra_trust_anchors_async 

pub async fn shared_extra_trust_anchors_async() -> Result<Arc<[CertificateDer<'static>]>, Box<dyn Error + Send + Sync>>
Available on crate features crypto and native-certs and std only.
Expand description

Acquire the process-wide anchors from shared_extra_trust_anchors.

When the cache is cold, initialization runs on a Tokio blocking worker. Once the anchors are cached, they are returned directly.