Expand description
Reusable types related to enabling consistent TLS (webpki-roots/rustls-native-certs) usage in downstream libraries.
Downstream libraries can utilize this module to ensure a consistent set of CA roots and/or connectors.
For example, when building a rustls::ClientConfig
:
use rustls;
use wasmcloud_core::tls;
let config = rustls::ClientConfig::builder()
.with_root_certificates(rustls::RootCertStore {
roots: tls::DEFAULT_ROOTS.roots.clone(),
})
.with_no_client_auth();
Statics§
- DEFAULT_
CLIENT_ CONFIG - DEFAULT_
CLIENT_ CONFIG_ ARC - DEFAULT_
HYPER_ CONNECTOR - DEFAULT_
REQWEST_ CLIENT - DEFAULT_
ROOTS - DEFAULT_
RUSTLS_ CONNECTOR - NATIVE_
ROOTS - NATIVE_
ROOTS_ OCI - NATIVE_
ROOTS_ REQWEST - REQWEST_
USER_ AGENT
Traits§
Functions§
- load_
certs_ from_ paths - Attempt to load certificates from a given array of paths
- read_
certs_ from_ path - Read certificates from a given path