I know this question might sound too easy and I should had read all docs available on internet, the true is that I did, and I had no luck, its kinda confusing for me, I have installed many times this thing but for Apache, never for Tomcat.
I want to install a certificate from GoDaddy, so, I followed this instructions
I created my keyfile like this
keytool -keysize 2048 -genkey -alias tomcat -keyalg RSA -keystore tomcat.keystore keytool -certreq -keyalg RSA -alias tomcat -file csr.csr -keystore tomcat.keystore
I changed tomcat for mydomain.com .. is it wrong?
I created the keystore, later the csr, after that the problem comes, I add to server.xml on the config folder
<Connector port="8443" maxThreads="200" scheme="https" secure="true" SSLEnabled="true" keystoreFile="path to your keystore file" keystorePass="changeit" clientAuth="false" sslProtocol="TLS"/>
Later I imported the certs
keytool -import -alias root -keystore tomcat.keystore -trustcacerts -file valicert_class2_root.crt
and I did, but I dont have a gd_intermediate.crt and the last step is
keytool -import -alias tomcat -keystore tomcat.keystore -trustcacerts -file <name of your certificate>
reading in other blogs I saw they import here the crt , but tomcat is the user I have to leave? or its for example only??
In the docs of tomcat I found this (http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html)
Download a Chain Certificate from the Certificate Authority you obtained the Certificate keytool -import -alias root -keystore \ -trustcacerts -file
And finally import your new Certificate keytool -import -alias tomcat -keystore <your_keystore_filename> \ -file <your_certificate_filename>
but I have no idea what is a "chain certificate" ... can somebody help me? I am really confused and lost. I am using Tomcat7