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

Include feature for (native) certificates #468

Merged
merged 1 commit into from
Jun 6, 2021
Merged

Conversation

pfiaux
Copy link
Contributor

@pfiaux pfiaux commented Jun 5, 2021

Addresses #314 allowing use of fnm when behind a proxy with certificates.

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 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 feature might also work, I didn't test. They seem to cover similar functionality but maybe it works better on Linux ARM systems.

Addresses Schniz#314 allowing use of fnm when behind a proxy with certificates.

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 Jun 5, 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/JBg5z97WAnFE73QrGWA4nJNadGoQ
✅ Preview: https://fnm-git-fork-pfiaux-patch-1-schniz.vercel.app

@Schniz
Copy link
Owner

Schniz commented Jun 6, 2021

Awesome! Thanks. Let's see if all e2e tests pass 🙏

@Schniz Schniz added the PR: Bugfix A bug was fixed label Jun 6, 2021
@Schniz Schniz merged commit 560583a into Schniz:master Jun 6, 2021
@pfiaux pfiaux deleted the patch-1 branch June 6, 2021 17:03
itotallyrock pushed a commit to itotallyrock/fnm that referenced this pull request Aug 10, 2021
Schniz pushed a commit that referenced this pull request Aug 15, 2021
pfiaux added a commit to pfiaux/fnm that referenced this pull request Dec 16, 2021
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.
Schniz pushed a commit that referenced this pull request Dec 28, 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](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.
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