I am trying to get httpClient work for sslv3 connection currently we are connecting to sslv2 and it works but connecting to sslv3 does not work.

The problem is very similar to the one describe in the following link

http://www.mailinglistarchive.com/[email protected]/msg00380.html

this is the following error I get

javax.net.ssl.SSLException: Received fatal alert: bad_record_mac


import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.Header;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.protocol.Protocol;
import org.apache.commons.httpclient.protocol.ProtocolSocketFactory;
import org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory;


public class SSLv3Test {

final static String SSL_TEST_URL = "https://localhost/index.html";;

public static void main(String[] args) throws Exception {


GetMethod method = new GetMethod(SSL_TEST_URL);
HttpClient http = new HttpClient();

long t0 = System.currentTimeMillis();
int status = http.executeMethod(method); // This is the line i get a the error
}
}


Any help on this topic is greatly appreciated.
Thanks,
PM

Reply via email to