-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
tlsIssues and PRs related to the tls subsystem.Issues and PRs related to the tls subsystem.
Description
Recently while trying to create a benchmark for the JS Duplex stream compatibility for tls.connect(), I discovered an issue while trying to perform > 10-ish successive writes to the tls wrapped socket. The test case to reproduce this is in #1594.
The error I get is:
Error: 139779539269504:error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac:../deps/openssl/openssl/ssl/s3_pkt.c:521:
I'm not sure why it's using SSL3 in the first place since I thought 2 and 3 were disabled by default. So I tried forcing TLSv1 by setting secureProtocol: 'TLSv1_method' in the tls.connect() options, which instead causes this error:
events.js:141
throw er; // Unhandled 'error' event
^
Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:951:19)
at TLSSocket.g (events.js:257:16)
at emitNone (events.js:72:20)
at TLSSocket.emit (events.js:163:7)
at endReadableNT (_stream_readable.js:890:12)
at doNTCallback2 (node.js:436:9)
at process._tickCallback (node.js:350:17)
at Duplex.<anonymous> (_stream_wrap.js:38:18)
at emitOne (events.js:77:13)
at Duplex.emit (events.js:166:7)
Metadata
Metadata
Assignees
Labels
tlsIssues and PRs related to the tls subsystem.Issues and PRs related to the tls subsystem.