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!

Tell JVM that it should use both default and custom truststores?

843811Sep 24 2009 — edited Sep 29 2009
Coming off [this question|http://forums.sun.com/thread.jspa?threadID=5408453] I have solved my problem by importing the entire cacerts keystore into my truststore along with the special certificates I need for SSL contacts with other remote servers.

But this feels like a bit of a hack. Rather than doing this, I'd like to be able to tell the JVM "use this truststore but also look at the default when you're making an SSL request". Is there some way to do this with keytool? Or is there some simple way to set this "policy" up in my code? If so, a code sample would be a big help.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2009
Added on Sep 24 2009
13 comments
1,411 views