chore(build): enable system CA trust in pkg binary#1046
Open
hsablonniere wants to merge 1 commit intomasterfrom
Open
chore(build): enable system CA trust in pkg binary#1046hsablonniere wants to merge 1 commit intomasterfrom
hsablonniere wants to merge 1 commit intomasterfrom
Conversation
|
🔎 A preview has been automatically published! If you created the alias to the preview script, you can run this command to download and install this preview: clever-preview update clever-multi-profile-system-certYou can also run it from your local repository: ./scripts/preview.js update clever-multi-profile-system-cert
This preview will be deleted once this PR is closed. |
The CLI binary now uses NODE_USE_SYSTEM_CA behavior to load CA certificates from the operating system certificate store alongside Node.js's bundled Mozilla CAs. This resolves SSL certificate chain errors in enterprise environments with internal/corporate CAs installed at the OS level.
f968b1d to
bfe150a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The CLI binary now uses
--options use-system-cawhen built with @yao-pkg/pkg to load CA certificates from the operating system certificate store.This resolves SSL certificate chain errors (
Error: self signed certificate in certificate chain) in enterprise environments where internal/corporate CAs are installed at the OS level but not recognized by Node.js's bundled Mozilla CAs.Technical Details
--use-system-caflag (available in Node.js 22.15.0+, 23.9.0+)/etc/ssl/certs/,SSL_CERT_FILE, orSSL_CERT_DIR--options use-system-caTesting
The binary will now accept both bundled and system-installed CA certificates.