Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(re)Include feature for (native) certificates #603

Merged
merged 3 commits into from
Dec 28, 2021

Conversation

pfiaux
Copy link
Contributor

@pfiaux pfiaux commented Dec 16, 2021

Addresses #314 allowing use of fnm when behind a proxy with certificates by reapplying #468 after the revert from ureq to reqwest.

This adds the "rustls-tls-native-roots" cargo feature to reqwest. That uses rustls-native-certs:

rustls-native-certs allows rustls to use the platform's native certificate store when operating as a TLS client.

I reused the previous commit message mostly, but not 100% accurate since this I didn't run the same tests this time.

Addresses Schniz#314 allowing use of fnm when behind a proxy with certificates by reapplying Schniz#468 after the revert from ureq to reqwest.

This adds the `"rustls-tls-native-roots"` [cargo feature](https://docs.rs/reqwest/0.11.3/reqwest/#optional-features) to reqwest. That uses [rustls-native-certs](https://github.com/rustls/rustls-native-certs):
> rustls-native-certs allows rustls to use the platform's native certificate store when operating as a TLS client.

I tested on macOS both with and without proxy mainly doing `cargo run -- list-remote`, and installing node 16, this worked behind proxy. Without proxy I only tested list-remote. Perhaps other commands need to be retested as well.

The [`native-tls`](https://docs.rs/native-tls/0.2.7/native_tls/) feature might also work, I didn't test. They seem to cover similar functionality but maybe it works better on Linux ARM systems.
@vercel
Copy link

vercel bot commented Dec 16, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/schniz/fnm/4hN7kwdcP7boa7zkbGjcSXfgzmpu
✅ Preview: https://fnm-git-fork-pfiaux-feature-rustls-tls-native-roots-schniz.vercel.app

@pfiaux
Copy link
Contributor Author

pfiaux commented Dec 16, 2021

I wasn't able to clone and build locally yet, I might be able to give it a try next week.

@Schniz
Copy link
Owner

Schniz commented Dec 20, 2021

Is it okay that I will push the changes in Cargo.lock to this branch?

@pfiaux
Copy link
Contributor Author

pfiaux commented Dec 20, 2021

Sure! let me know if I need to do something on my side as well.

@Schniz Schniz added the PR: Bugfix A bug was fixed label Dec 28, 2021
@Schniz Schniz merged commit 21cb54e into Schniz:master Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Bugfix A bug was fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants