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 What value is to be set in Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "What value is to be set in" Watch "What value is to be set in" New topic

What value is to be set in

Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 219
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("", "keystore.ks");

Can someone please confirm if I am doing it right?

And why not should I do

System.setProperty("", "server.cer");

Please do let me know your views.

It is sorta covered in the JavaRanch Style Guide.
subject: What value is to be set in