Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2578
  • Last Modified:

SSL v3 handshake error: bad_record_mac

I am developing a Java client application to work with a web server.  Everything was fine until the server was changed to strictly use the ssl v3 protocol.  During the handshaking, I now get a bad_record_mac error during the handshake's final stage.

From the ssl log:

main, WRITE: SSLv3 Change Cipher Spec, length = 1
*** Finished
verify_data:  { 103, 120, 75, 207, 55, 129, 35, 51, 184, 41, 70, 157, 27, 177, 2
05, 106, 79, 118, 93, 206, 248, 35, 80, 85, 214, 168, 197, 232, 64, 190, 102, 93
, 134, 188, 148, 138 }
***
main, WRITE: SSLv3 Handshake, length = 56
main, READ: SSLv3 Alert, length = 2
main, RECV SSLv3 ALERT:  fatal, bad_record_mac

The "change cipher spec" above appears to be successful from the server.  The problem seems to be that the client is not successfully processing its final "change cipher spec."
0
don2347
Asked:
don2347
1 Solution
 
Mayank SAssociate Director - Product EngineeringCommented:
Are you trying to make a call before a response has come back to the previous call or accessing the same socket in multiple threads, trying to do read/ write simulatenously? If so, don't do it.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now