FW: about bad_record_mac and TLS V1 in ssl
-----Original Message----- From: A Leg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 1:47 PM To: Steve Johnson; [EMAIL PROTECTED] 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"}); ((SSLSocket)socket).setUseClientMode(true); 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. Thanks, Steve Johnson, Software Engineer, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> direct 720.564.6532 www.mercury.com <http://www.mercury.com> www.mercury.com <http://www.mercury.com> -----Original Message----- From: A Leg [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Thursday, March 03, 2005 12:07 PM To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Subject: about bad_record_mac Hi 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 Andre 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$CharsetSE.writeBytes(StreamEncoder.java:336) at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) at Test.main(Test.java:29)
