Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting multiple keystores.

807603Jan 24 2008
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2008
Added on Jan 24 2008
0 comments
190 views