Solved

SSL v3 handshake error:  bad_record_mac

Posted on 2006-06-14
4
2,509 Views
Last Modified: 2012-05-05
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
Comment
Question by:don2347
4 Comments
 
LVL 30

Accepted Solution

by:
mayankeagle earned 500 total points
ID: 16910061
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now