Solved

SSL v3 handshake error:  bad_record_mac

Posted on 2006-06-14
4
2,549 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:
Mayank S 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 Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

808 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