You must import signed certficate request under same alias you used to
generate request. So, instead of -alias tomcat2 use -alias tomcat.
Ognjen,
When I ran it that way, it gave an error (blew those notes away) and a search
led me to see someone suggesting you couldn't reuse that alias, so I
I have setup a keystore as follows:
keytool -genkey -alias tomcat -keyalg RSA -dname CN=server FQDN,OU=Company
Name,O= Company Name ,L=city,ST=province,C=CA \
-keystore /path/keystore -keypass phrase -storepass phrase
I then generated a CSR:
keytool -certreq -keyalg RSA -alias tomcat -file