pub enum RootCerts {
WebPki,
PlatformVerifier,
}Expand description
Which trust anchors verify the TLS server certificate of a component download.
WebPki (the default) uses the Mozilla root set compiled into the binary, so behaviour does not
depend on the machine. PlatformVerifier defers to the operating system trust store, which is
what hosts behind a TLS-inspecting corporate proxy need: the proxy’s CA is installed system-wide
but is not in the Mozilla set. It requires the platform-verifier cargo feature of this crate;
without it a download fails with ComponentError::Download naming the missing feature rather
than silently falling back to WebPki. Integrity of the downloaded archive is unaffected: it is
still pinned by the lock entry’s SHA-256 (and signature).
Variants§
WebPki
Mozilla root certificates compiled into the binary.
PlatformVerifier
The operating system’s certificate verifier (needs the platform-verifier feature).