Link to home
Start Free TrialLog in
Avatar of Anthony Lucia
Anthony Lucia

asked on

Java, Linux,: IN this context does .keystore refer to a file or a directory

When starting the client's VM, specify the following system properties:

javax.net.ssl.keyStore=/path/to/client.ks
javax.net.ssl.keyStorePassword=password
javax.net.ssl.trustStore=/path/to/client.ts
Icon

Open in new window


In Linux, do not use absolute path to keystore. By default, keytool uses ~/.keystore, but in some setups passing -Djavax.net.ssl.keyStore=/home/account/.keystore to Java VM does not work. This is not ActiveMQ specific but good to keep in mind anyway.

Open in new window


The documentation suggests refering to  the following

~/.keystore

Open in new window


So in this context, does .keystore refer to a directory  (in which case I would put my client.ks in:

 ~/.keystore/client.ks

Or does it refer to the .keystore itself as being the new name of the client.ks
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

A keystore is a file. Keys are imported (with keytool etc) into that file
Avatar of Anthony Lucia
Anthony Lucia

ASKER

I understand that the keystore itself is a file.  However, I was not clear in my post

What I do not understand is if the documentation is referring that the actual name of the keystore is:

~/.keystore

Open in new window


or if .keystore is just a subdirectory within the home underneath which it places the actual keystore, as in:

~/.keystore/broker.ks

Open in new window


Since broker.ks is used by the documentation to specify the name of the keystore.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)