trustAnchors parameter
843811Dec 17 2004 — edited Aug 27 2008Hi,
I'm trying to do a ssl connection (via GLUE) to a remote service. Since upgrade to Java 1.5, I get the following exception:
java.rmi.RemoteException: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty; nested exception is:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty[i]
I have no idea, how to set this parameter and what has actualli changed in the security framework (did something change?)
The certificate is in the keystore and under Java 1.4.2, everything worked flawlessly.
Can anyone provide some samplecode of how to use this trustAnchor parameter?
Tanks in advance.