bytecodealliance / bytecodealliance/wasmtime

wasi-http: Allow setting TLS root certs for `default_send_request`

Open
#8,748 19 comments 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

Currently, the TLS roots are [hard-coded](https://github.com/bytecodealliance/wasmtime/blob/ca405bb023d7f5f201eed8cdf37be3a9f3141e5b/crates/wasi-http/src/types.rs#L232-L239) to the `webpki-roots` set. This is a good default, but in some scenarios private roots are required. We should be able to add options to `OutgoingRequestConfig` to extend and/or replace that default set of roots with custom root(s).

[Zulip context](https://bytecodealliance.zulipchat.com/#narrow/stream/219900-wasi/topic/HTTP.20client.20PKI.20roots)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.