-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Suggest --use-system-ca when a certificate error occurs #57362
Merged
Merged
Conversation
This file contains 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
Review requested:
|
4ef5477
to
e9b2b8f
Compare
anonrig
approved these changes
Mar 7, 2025
joyeecheung
approved these changes
Mar 7, 2025
Linter is complaining
|
3847336
to
f023b3e
Compare
jasnell
reviewed
Mar 7, 2025
jasnell
reviewed
Mar 7, 2025
jasnell
reviewed
Mar 7, 2025
jasnell
reviewed
Mar 7, 2025
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57362 +/- ##
==========================================
- Coverage 90.21% 90.21% -0.01%
==========================================
Files 630 630
Lines 185304 185315 +11
Branches 36266 36276 +10
==========================================
+ Hits 167171 167178 +7
- Misses 11084 11086 +2
- Partials 7049 7051 +2
🚀 New features to boost your workflow:
|
f023b3e
to
9a60c5e
Compare
joyeecheung
approved these changes
Mar 8, 2025
Landed in d615a3c |
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.
This change appends a hint suggesting that if the root CA is installed locally, try running with the --use-system-ca flag.
For errors like
UNABLE_TO_VERIFY_LEAF_SIGNATURE
,DEPTH_ZERO_SELF_SIGNED_CERT
, orUNABLE_TO_GET_ISSUER_CERT
occur.This change directs developers toward a secure solution — preventing them from using unsafe workarounds (e.g. disabling TLS verification entirely) that have been discussed in the threads online like the following:
Thanks @joyeecheung for the help :)