Skip to main content

trust

Function trust 

Source
pub fn trust(ca_pem: &str)
Expand description

Trusts ca_pem in every client this crate builds for the rest of this process.

super::EXTRA_CA_CERTS is how a running program is told, and a test cannot use it: a client built inside this workspace — a pinned one, or any caller’s — is not a client a test can hand roots to, and an environment variable is shared by every test in the binary.

Additive, like the variable, and only for a test: a server a test stood up signs from an authority it made, and this is how the code under test reaches it.