aspose file tools
The moose likes Security and the fly likes What value is to be set in javax.net.ssl.trustStore? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "What value is to be set in javax.net.ssl.trustStore?" Watch "What value is to be set in javax.net.ssl.trustStore?" New topic
Author

What value is to be set in javax.net.ssl.trustStore?

Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 176
I have one file that is provided to me by the customer (i.e. server.cer)

I used a command something like below to create a keystore.ks file

keytool -import -alias bob -file bob.crt -keystore keystore.ks

I add this to

System.setProperty("javax.net.ssl.trustStore", "keystore.ks");

Can someone please confirm if I am doing it right?

And why not should I do

System.setProperty("javax.net.ssl.trustStore", "server.cer");


Please do let me know your views.


 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: What value is to be set in javax.net.ssl.trustStore?
 
Similar Threads
Certification problems
problem calling a remote webservice [ Algo Error]
client using https url
Totally lost, need help!
"javax.net.ssl.keyStore" system property inside a jar package