the way of creating certificates with openssl and keytool is followed:
[code]
openssl genrsa -out ca.key 1024
openssl req -new -days 3650 -x509 -key ca.key -out cacert.pem -config openssl.cnf
openssl genrsa -des3 -out server.key 1024
openssl rsa -in server.key -out serverkey.pem
openssl req -new -days 3650 -key server.key -out server.csr -config openssl.cnf
openssl ca -days 3650 -keyfile ca.key -cert cacert.pem -outdir . -in server.csr -out server.pem -config openssl.cnf
openssl x509 -in server.pem -out server.crt
openssl x509 -in demoCA/cacert.pem -out demoCA/cacert.crt
keytool -genkey -keyalg RSA -alias jboss -keystore server.keystore -storepass 111111 -storetype jks
keytool -import -alias root -trustcacerts -file demoCA/cacert.crt -keystore server.keystore
keytool -import -alias jboss1 -trustcacerts -file server.crt -keystore server.keystore
[/code]
[code]
openssl genrsa -out ca.key 1024
openssl req -new -days 3650 -x509 -key ca.key -out cacert.pem -config openssl.cnf
openssl genrsa -des3 -out server.key 1024
openssl rsa -in server.key -out serverkey.pem
openssl req -new -days 3650 -key server.key -out server.csr -config openssl.cnf
openssl ca -days 3650 -keyfile ca.key -cert cacert.pem -outdir . -in server.csr -out server.pem -config openssl.cnf
openssl x509 -in server.pem -out server.crt
openssl x509 -in demoCA/cacert.pem -out demoCA/cacert.crt
keytool -genkey -keyalg RSA -alias jboss -keystore server.keystore -storepass 111111 -storetype jks
keytool -import -alias root -trustcacerts -file demoCA/cacert.crt -keystore server.keystore
keytool -import -alias jboss1 -trustcacerts -file server.crt -keystore server.keystore
[/code]