GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(deps): use native OS certificate store for TLS on non-Windows platforms by jkker · Pull Request #1134 · voidzero-dev/vite-plus Conversation
|
rustls-tls |
rustls-tls-native-roots |
|
|---|---|---|
| CA source | Bundled Mozilla root CAs (compile-time) | OS native trust store (runtime) |
| Custom/private CAs | Not supported | Loaded from OS keychain/cert dirs |
| TLS-intercepting proxies | Always fails | Works if proxy CA is in OS trust store |
| TLS library | rustls (unchanged) | rustls (unchanged) |
| Crypto backend | ring/aws-lc (unchanged) | ring/aws-lc (unchanged) |
| OS cert store dependency | None | security-framework (macOS), openssl-probe (Linux) |
The underlying TLS library (rustls) and cryptographic backend remain identical — only the source of trusted root certificates changes.
vp on any machine where HTTPS traffic is intercepted by a TLS proxy that re-signs certificates with a non-Mozilla CA$ vp upgrade --check
error: Upgrade error: Failed to fetch package metadata from
https://registry.npmjs.org/vite-plus/latest: error sending request for url
(https://registry.npmjs.org/vite-plus/latest)
$ vp env install lts
error: Failed to download Node.js runtime: Failed to download from
https://nodejs.org/dist/index.json: error sending request for url
(https://nodejs.org/dist/index.json)
curl, node, git, and other tools that use the OS certificate store or respect SSL_CERT_FILE# Current binary uses bundled webpki-roots: strings $(which vp) | grep -c 'webpki_roots' # > 0 # After this fix, uses OS-native certs: strings $(which vp) | grep -c 'webpki_roots' # 0 strings $(which vp) | grep -c 'security-framework' # > 0 (macOS)
crates/vite_error/Cargo.toml: rustls-tls → rustls-tls-native-rootscrates/vite_install/Cargo.toml: rustls-tls → rustls-tls-native-rootscrates/vite_js_runtime/Cargo.toml: rustls-tls → rustls-tls-native-rootsCargo.lock: replaces webpki-roots with rustls-native-certs (+ transitive deps security-framework, openssl-probe)No Rust source code changes required.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…tforms Switch reqwest feature from `rustls-tls` to `rustls-tls-native-roots` in vite_error, vite_install, and vite_js_runtime crates. `rustls-tls` bundles Mozilla's root CA store (webpki-roots) at compile time. This means the `vp` binary can only verify certificates signed by CAs in Mozilla's root program, ignoring any additional CAs installed in the OS certificate store. `rustls-tls-native-roots` uses `rustls-native-certs` to load certificates from the platform's native trust store at runtime: - macOS: Security.framework (System Keychain) - Linux: OpenSSL certificate directories - Windows: unchanged (already uses native-tls-vendored / SChannel) This fixes TLS verification failures for users behind corporate proxies, firewalls, or TLS inspection appliances that re-sign certificates with a private Switch reqwest feature from `rustls-tls` to `rustls-tls-native-roots` in vite_error, vite_install, and vite_js_runtime crates. `rustls-tls` bundles Mozilla's root CA store (webpki-roots) git reset HEAD 2>&1 git --no-pager log --oneline -3 git --no-pager log --oneline -3 2>&1 | head -5 git --no-pager status --short 2>&1 | tail -10 exit export PATH="/opt/homebrew/opt/rustup/bin:$PATH" && git status --short 2>&1 | head -10
There was an error while loading. Please reload this page.
✅ Deploy Preview for viteplus-preview canceled.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This is a duplicate of #1068 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.