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 of reqwest instead of rustls-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
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:
rustls-tls-webpki-rootsfeature ofreqwestinstead ofrustls-tls-native-rootsas is currently used.rustls/default-tlsHowever, 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-rootsin thereqwestcrate as well, in which case it might be sufficient to adjust1.above with "as well as" in place of "instead of"Notes
No response