AuthorityTrust
Module: config::authority::AuthorityTrust
Section titled “Module: config::authority::AuthorityTrust”Contents
Section titled “Contents”Functions
resolve- Resolve the trust source from the configured CAs and the platform-root
firma_sidecar::config::authority::AuthorityTrust::resolve
Section titled “firma_sidecar::config::authority::AuthorityTrust::resolve”Function
Resolve the trust source from the configured CAs and the platform-root switch: any CA named wins over the switch.
Call it before re-basing the paths: a blank entry re-based onto the config directory would name that directory and look valid.
Errors
Section titled “Errors”Returns [AuthorityTrustError] when an entry is blank, or when the
platform’s roots are disabled and no CA is named, a configuration that
could verify nothing.
fn resolve(ca_cert_paths: Vec<PathBuf>, platform_roots: PlatformRoots) -> Result<Self, AuthorityTrustError>