I have a problem with trying to use httpunit with HTTPS.
I am using java version "1.4.1_07".
I have to use proxy (as I am at work) and I am setting it by
wc.setProxyServer( "####", 80, "####", "####" );
I am basically using the Example.java which comes with httpunit 1.6 release and modifying the url it is fetching.
Results :
HTTP to www.westpac.com.au works fine with this method.
HTTPS to www.westpac.com.au fails with
Exception: java.net.ConnectException: Connection timed out: connect
I have added www.westpac.com.au into my cacerts file. And even though I am told that SSL is already incorporated into java 1.4.1, I have put the 3 jars into the ext directory.
my java.security looks like so :
security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
security.provider.3=com.sun.rsajca.Provider
security.provider.4=com.sun.crypto.provider.SunJCE
security.provider.5=sun.security.jgss.SunProvider
It is really puzzelling me.
Would anyone know what to do?
Or even any suggestions on how to debug this matter would be greatly appreciated.
There seems to have been similar threads here and within Google over the previous few years. But none with a solution. Btw, Yes I have read the FAQ about this problem. :)
Cheers
Edster.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Edit : In the last post where I said
HTTPS to http://www.westpac.com.au fails
I meant
HTTPS to https://www.westpac.com.au fails.
Also I meant that I have added this SSL public certificate into my cacerts file.
Thanks
Edster
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
Great. At last, I join this community!
I have a problem with trying to use httpunit with HTTPS.
I am using java version "1.4.1_07".
I have to use proxy (as I am at work) and I am setting it by
wc.setProxyServer( "####", 80, "####", "####" );
I am basically using the Example.java which comes with httpunit 1.6 release and modifying the url it is fetching.
Results :
HTTP to www.westpac.com.au works fine with this method.
HTTPS to www.westpac.com.au fails with
Exception: java.net.ConnectException: Connection timed out: connect
I have added www.westpac.com.au into my cacerts file. And even though I am told that SSL is already incorporated into java 1.4.1, I have put the 3 jars into the ext directory.
my java.security looks like so :
security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
security.provider.3=com.sun.rsajca.Provider
security.provider.4=com.sun.crypto.provider.SunJCE
security.provider.5=sun.security.jgss.SunProvider
It is really puzzelling me.
Would anyone know what to do?
Or even any suggestions on how to debug this matter would be greatly appreciated.
There seems to have been similar threads here and within Google over the previous few years. But none with a solution. Btw, Yes I have read the FAQ about this problem. :)
Cheers
Edster.
Edit : In the last post where I said
HTTPS to http://www.westpac.com.au fails
I meant
HTTPS to https://www.westpac.com.au fails.
Also I meant that I have added this SSL public certificate into my cacerts file.
Thanks
Edster
I have found the solution to this problem.
The problem was I was using java 1.4.1.
When I switched to java 1.5 the problem just corrected itself!