| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #54251 +/- ##
==========================================
- Coverage 87.11% 87.11% -0.01%
==========================================
Files 647 647
Lines 181693 181739 +46
Branches 34869 34885 +16
==========================================
+ Hits 158278 158316 +38
- Misses 16724 16731 +7
- Partials 6691 6692 +1 see 24 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
Depending on the content of a cert, it seems that OpenSSL will prioritize the root cert over the context returned by SNICallback. This behavior is unexpected. This PR adds a test that demonstrates the behavior. Ideally there is a fix, or a explanation for this behavior we can add to the docs. Fixes: nodejs#54235 PR-URL: nodejs#54251
There was a problem hiding this comment.
This is an error in the test. This line should read context: tls.createSecureContext(root) instead.
Currently, it doesn't affect the test result because the SNI callback will return an undefined context, causing it to use the default context which coincidentally mirrors the one created here.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR contains a new test that demonstrates the issue I outlined in #54235
I really don't think there is anything wrong with Node.js - it feels to me like an OpenSSL thing. Most likely not a bug either, but an intended behavior where certain certificates are prioritized over others.