Replies: 5 comments 1 reply
-
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.) |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
But I don't pass any options object to |
Beta Was this translation helpful? Give feedback.
-
Is there perhaps a way to mock this behavior for the 'self-signed' certificate? |
Beta Was this translation helpful? Give feedback.
-
Version
v19.8.1
Platform
Microsoft Windows NT 10.0.19045.0 x64
Subsystem
TLS/SSL
What steps will reproduce the bug?
Run
https
server:Then use
http2.connect
to 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
connect
should be triggeredWhat do you see instead?
Node 19 doesn't execute
connect
and rise an error:Additional information
If run this example on Node before the 19 version, another error will rise but at least the
connect
event will be triggered.Beta Was this translation helpful? Give feedback.
All reactions