Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Security and the fly likes Configuring trust store for SSL client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Configuring trust store for SSL client" Watch "Configuring trust store for SSL client" New topic

Configuring trust store for SSL client

Sol Mayer-Orn
Ranch Hand

Joined: Nov 13, 2002
Posts: 311

Would any one please be able to tell whether and SSL client can *programatically* configure its "trust store" , and *not* by using System.setProperty ?

In detail:
I'm writing a client, that connects to a server using SSL.
The server's certificate is *not* signed by a "well-known" CA (certificate authority). Rather, it's signed by my company's private CA.

Now, I *know* you can edit the default java trust-store file. Or you can use System.setProperty() to set the trust-store file.

But, is it possible to have finer control over the trust store ? In my case, the client has multiple threads, each thread requiring a different trust sotre - so a global "system property" is not good enough...

Thanks !
I agree. Here's the link:
subject: Configuring trust store for SSL client
It's not a secret anymore!