RSA Premaster Secret Error, JDK 1.5.0_01 (simple test case)
Hello,
I still didn't find a solution to workaround exception on establishing SSH connection with some web servers. Below is the most simple code that throws exception:
try{
URL url =new URL("https://svn.apache.org/repos/asf");
HttpsURLConnection connection =
(HttpsURLConnection) url.openConnection();
connection.connect();
connection.disconnect();
}catch (MalformedURLException mue){
mue.printStackTrace(System.out);
}catch (IOException ie){
ie.printStackTrace(System.out);
}
If you add svn.apache.org certifcate into your truststore (cacerts file) then you will get an "RSA premaster secret error" exception when running the code above.
Any ideas how to fix this problem?
Thanks,
Alexander Kitaev.

