Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

trustAnchors parameter

843811Dec 17 2004 — edited Aug 27 2008
Hi,
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2008
Added on Dec 17 2004
25 comments
51,917 views