Replies: 0 comments 6 replies
You say 'what' but not 'why'. FWIW, I don't think it's a reasonable expectation. It's appropriate that no connection/session is established when the server uses an invalid certificate. If older node versions behaved differently, that only means node became more correct over time. (I'm counting self-signed as invalid because such a certificate doesn't validate against any trust anchors.) |
|
I need to check the connection for developing purposes. And it works fine till the 19 version. When I'm creating a new valid openssl certificate and use it instead of |
|
You pass an options object to Alternatively, you can pass a I'm converting this to a discussion because there's no bug here, node is behaving as it should. |
|
But I don't pass any options object to |
|
Is there perhaps a way to mock this behavior for the 'self-signed' certificate? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Version
v19.8.1
Platform
Microsoft Windows NT 10.0.19045.0 x64
Subsystem
TLS/SSL
What steps will reproduce the bug?
Run
httpsserver:Then use
http2.connectto connect with this server:You can use your own https options instead of
openssl-self-signed-certificate. It doesn't matter.How often does it reproduce? Is there a required condition?
It happens permanently in Node 19.
What is the expected behavior? Why is that the expected behavior?
The event
connectshould be triggeredWhat do you see instead?
Node 19 doesn't execute
connectand rise an error:Additional information
If run this example on Node before the 19 version, another error will rise but at least the
connectevent will be triggered.All reactions