Setting multiple keystores.
Hello,
Using the keytool command I'm trying to add a certificate, xyz.cer, to a keystore.
Following are the two commands that I'm executing:
keytool -genkey -alias jboss-cl -dname "CN=Client, OU=X, O=Y, L=Z, S=XY, C=YZ" -keyalg RSA -keypass changeit -storepass changeit -keystore client.keystore
keytool -import -v -trustcacerts -file xyz.cer -keystore client.keystore -keypass changeit -storepass changeit
I'm using Jboss-4.0.3SP1 web server which is clustered. There is individual certificates against each of these clusters.
Can I have one more certificate which I can bind to the same client.keystore variable?
Further I'm using this client.keystore as follows:
String strKeystoreFileName = "."+java.io.File.separator+"client.keystore";
System.setProperty("javax.net.ssl.trustStore", strKeystoreFileName);
There are two instances due to which:
1} there is no exception and the process using this code snippet executed fine.
2} there is SSHHandShakeException which is again intermittent.
Please guide me for the same. I'm not very adept in webservices and related stuff.
Your help is deeply appreciated.
Thanks,
Dan.