Unsupported keysize or algorithm parameters error
I am using Websphere 5.1 app server.
I am trying to create a Webservices client which uses a PFX keystore/truststore file to establish SSL conectivity with the Server.
but it gives out an error while calling the webservices method.
Has someone come accross the same problem.
Here is the error message........
--
exception: java.net.SocketException: Error in loading the keystore: Private key decryption error: (java.lang.SecurityException: Unsupported keysize or algorithm parameters)
--
my code to set the System Properties in the Client Server is as follows....
java.security.Security.addProvider(new com.ibm.jsse.IBMJSSEProvider());
System.setProperty("java.protocol.handler.pkgs","com.ibm.net.ssl.internal.www.protocol");
String keystoreFile ="C:\\TEST\\ABC.pfx";
System.setProperty("javax.net.ssl.trustStore", keystoreFile);
System.setProperty("javax.net.ssl.trustStoreType","PKCS12");
System.setProperty("javax.net.ssl.trustStorePassword","testabc");
System.setProperty("javax.net.ssl.keyStoreType","PKCS12");
System.setProperty("javax.net.ssl.keyStore", keystoreFile);
System.setProperty("javax.net.ssl.keyStorePassword","testabc");

