dummy questions about keystore?

I am new to java and jboss

I tried these commands on my Centos5.4 final machine where I can find the .JKS and .dat files ?

keytool -export -keystore myhost-keystore.dat -alias myhost -storetype JKS -storepass jonpassword \
-file myhost-cer
keytool -import -keystore truststore.dat -alias myhost -storetype JKS -file myhost-cert
-noprompt -keypass jonpassword -storepass jonpassword



It looks like you've skipped the first step, which is to create the keystore. Following the instructions here, you should first run this command:

keytool -genkey -dname "CN=myhost.mycorp.com" -keystore myhost-keystore.dat -validity 3650 -alias myhost \
-keyalg DSA -storetype JKS -keypass jonpassword -storepass jonpassword

That will create the myhost-keystore.dat file in the current directory. After that, you should be able run the keytool -export ... command, which will create the myhost-cer file, again in the current directory. And finally, the keytool -import ... command will import that certificate into a new keystore file named truststore.dat in the current directory.

Note that JKS is a keystore type, not the name of a file.

cacerts default jks is at


But for JBoss it may not be enough.

There may be some config location under server instance

Need Your Help

I am getting the error Operand should contain 1 column(s)

mysql mysql-error-1241

Here is my code that I have and I cannot figure out why the following code returns the error Operand should contain 1 column(s). I know that both queries work independantly of the query I have belo...

How to access secondary travis logs

ruby continuous-integration cloud travis-ci

I know the primary travis build logs are available on the web and with the logs command in the travis command line client, but I was wondering if there is a way to access other files generated as p...