hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Johnson <sjohn...@mercury.com>
Subject FW: about bad_record_mac and TLS V1 in ssl
Date Thu, 03 Mar 2005 20:52:41 GMT
FW: about bad_record_mac and TLS V1 in ssl


-----Original Message-----
From: A Leg [mailto:hale_india@yahoo.com] 
Sent: Thursday, March 03, 2005 1:47 PM
To: Steve Johnson; Bradford.Wetmore@Sun.COM
Subject: Re: about bad_record_mac


Hi Steve an Bradford.

Steve proposal works at the end. I failed my first tests because I did'nt import the SSLSocket

Thank's a lot for your help.

Now I have to find out how to pass the authorisation. (with netscape I fill user and passwd)

Below the code which works
and the result (including the complain about authentification).

I have been realy impressed to get answer ins a so short delay.

Thank's from cyprus.

Andre Legendre

Steve Johnson wrote: 

Hi A Leg, 
I had a couple of ssl related problems, 
if I remember correctly this problem was related 
to TLS V1 being in the list of encryption algorithms to 
use when handling https. 

I turned off TLS by doing this: 
      ((SSLSocket)socket).setEnabledProtocols(new String[] {"SSLv3"}); 

directly on the socket in the ssl socketFactory. 


There is an api call to return the names of all encryption algorithms currently supported
in your java
environment. Here is a list of default

protocols it found on my system. 

 {"TLSv1", "SSLv2Hello", "SSLv3"}); 

If this doesn't seem relevant to your problem give me more details. 


Steve Johnson, Software Engineer, sjohnson@mercury.com <mailto:sjohnson@mercury.com>
direct 720.564.6532 
www.mercury.com <http://www.mercury.com>  

www.mercury.com <http://www.mercury.com>  

-----Original Message----- 
From: A Leg [mailto:hale_india@yahoo.com <mailto:hale_india@yahoo.com> ] 
Sent: Thursday, March 03, 2005 12:07 PM 
To: sjohnson@mercury.com <mailto:sjohnson@mercury.com>  
Subject: about bad_record_mac 


I have seen that you had a problem with bad_record_mac 

I have also it is a very big probelem for me. I got stuck from afew days 
and I have no ideas. 

Have you found the solution ?? 

Thank's for any answer 


Exception in thread "main" javax.net.ssl.SSLException: Received fatal 
alert: bad_record_mac 
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275) 
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA6275) 
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275) 
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) 
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) 
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) 
        at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) 
        at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) 
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) 
        at Test.main(Test.java:29) 


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message