Description
Problem you are trying to solve
While it doesn't affect me, I notice that a number of people have problems with Rustup, particularly in dockers or other smaller systems, when it comes to CA certificates and the like - shifting from openssl (no matter if vendored or not) to rustls/webpki-roots would allow rustup to embed the certificates needed to work cleanly, paving the way closer to a fully independent binary if desirable (ie built with musl where appropriate).
Solution you'd like
In a basic sense it ought to be as simple as:
- Use the
rustls-tls-webpki-roots
feature ofreqwest
instead ofrustls-tls-native-roots
as is currently used. - Remove the support for
rustls/default-tls
However, for full flexibility, it might also be worthwhile to add support for loading additional CA certificates from file (or indeed from the system CA store as well) so that you can still support corporate installations which need to MITM web TLS connections. This may be possibly as simple as also enabling rustls-tls-native-roots
in the reqwest
crate as well, in which case it might be sufficient to adjust 1.
above with "as well as" in place of "instead of"
Notes
No response