Repository navigation
Error: 140735127326720:error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac #4161
Description
Activity
- addedtlsIssues and PRs related to the tls subsystem.Issues and PRs related to the tls subsystem.
on Dec 4, 2015 I began investigating this one.
It happens with a buffer or string size >= 3810 andwrite()also triggers it.Ok, so it looks like the cleartext data is probably getting mixed with the underlying TLS exchange somehow (hence the protocol error). To verify this, if you wait until you see the
secureConnectevent of the secondtls.connect()to dosocket.end(message);in TLS serverb, it will work just fine (you can accomplish this using an event emitter or calling a function that gets set insideb's connection handler that wrapssocket.end(message);). Alternatively, wrap thesocket.end(message);in asetTimeout()of like 1 second or so for the same effect./cc @indutny
Will look into this tomorrow.
Actually, I have a fix for it right now.
- added a commit that references this issue
on Dec 8, 2015 Here you go #4184 . Thanks for figuring it out!
- addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.
on Dec 8, 2015 Fixed!
- added a commit that references this issue
on Dec 9, 2015 - added a commit that references this issue
on Dec 30, 2015 - added a commit that references this issue
on Jan 19, 2016 - added a commit that references this issue
on Apr 2, 2016 I recieved this today on my heroku server:
Aug 23 06:00:00 0c5e4c77-c2c9-445d-aff8-3564937f7520 comicFeed: error We’ve encountered an error: Error: 140094844344192:error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac:../deps/openssl/openssl/ssl/s3_pkt.c:535:The server is running node 7.10
But I dont have much else to go on.The server is running node 7.10
@vongohren 7.x is unsupported. If you can, consider upgrading to 8.x (which will be supported until the end of 2019). No idea if this will fix your issue, but it's the first thing I'd try.
Just received this on macOS Mojave running Node 8, please see details below:
Error: 4571538880:error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac:../deps/openssl/openssl/ssl/s3_pkt.c:535:
openssl version OpenSSL 1.0.2l 25 May 2017
node --version v8.15.1
@petermetz You are using openssl 1.0.2l, but node 8.15.1 uses openssl 1.0.2r. You should ensure that this isn't specific to your non-standard build. Also, the bug fixed here has been backported to 8.15.1, as far as I can see from a quick check, so you should report this as a different bug. It would help to have a reproduction.
@sam-github @mscdex @silverwind @indutny @Trott
same error on all dependence installationnpm ERR! code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC npm ERR! 8896:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:677: npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Satendra singh\AppData\Local\npm-cache\_logs\2021-12-11T05_34_29_970Z-debug.log@sam-github @mscdex @silverwind @indutny @Trott same error on all dependence installation
npm ERR! code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC npm ERR! 8896:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:677: npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Satendra singh\AppData\Local\npm-cache\_logs\2021-12-11T05_34_29_970Z-debug.logWhat version of Node.js are you running?
@sam-github @mscdex @silverwind @indutny @Trott same error on all dependence installation
npm ERR! code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC npm ERR! 8896:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:677: npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Satendra singh\AppData\Local\npm-cache\_logs\2021-12-11T05_34_29_970Z-debug.logWhat version of Node.js are you running?
Node version is 14,
I have updated node version right now 16,And in node js version 16
Error is
npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED npm ERR! errno ERR_SSL_CIPHER_OPERATION_FAILED npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/react-scripts: 3C160000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation failed:c:\ws\deps\openssl\openssl\providers\implementations\ciphers\ciphercommon_gcm.c:312: npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ss719\AppData\Local\npm-cache\_logs\2021-12-12T10_20_04_982Z-debug.logSounds like a network/firewall/proxy problem. If you're on WiFi, maybe try moving to another network.
But on network change this error
npm ERR! Cannot read properties of undefined (reading 'isServer')But on network change this error
npm ERR! Cannot read properties of undefined (reading 'isServer')Maybe try
npm cache clear --force. If that doesn't work, you can try the npm issue tracker , the Node.js help repo, StackOverflow, #node.js channel on libera.chat, or Node.js Slack Community (register at nodeslackers.com). This seems unlikely to be a Node.js core bug.- added a commit that references this issue
on Jul 27, 2026
With latest master, I was trying to track down some flakiness in
test-tls-inception.js, so I increased the data sent from the socket at thebserver like this:and got this error:
Reducing the size of the
Bufferto3000does not cause the error. Is this expected or a bug?Thanks