I am getting the below Error on hitting an third party URL via proxy sever which has the java version 1.6.0_26.
java.lang.RuntimeException: Could not generate DH keypair
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1649)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1612)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1595)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1521)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:64)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at org.owasp.webscarab.model.Request.writeDirect(Request.java:234)
at org.owasp.webscarab.model.Request.writeDirect(Request.java:215)
at org.owasp.webscarab.httpclient.URLFetcher.fetchResponse(URLFetcher.java:251)
at org.owasp.webscarab.plugin.proxy.ConnectionHandler.run(ConnectionHandler.java:346)
at java.lang.Thread.run(Thread.java:662)
I have searched for and found that this may due to Open JDK 1.6 doesn't support > 1024 bits encryption. So it will be resolved when we replace the JCE patched jar from http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
I have downloaded and replaced the JCE jar files, now i can able to get the response of the page.
Here my question is, It is stated that the issue is due to the website is using 2048 bit encryption, it will be resolved by replacing the JCE jar of Unlimited Strength.
But i could see most of the url which i am using has only 2048 bit encryption, working fine even in open JDK 1.6.
So i suspect that there may be some other reason to get the above exception only for URL which errored..
Any one can help me in this.....