I am trying to configure Tomcat 6 using SSL with a certificate provided to us (by someone). My SSL experience only spans a few days, but I still have to configure the darn thing.
I was provided a certificate (downloaded from IE) in DER format.
Next I created a keystore:
keytool -import -alias btIEgen -file MyCompany.der -keystore b2b.keystore
Say I used "password" for password
I configured this in Tomcat's server.xml in the SSL section:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="webapps/b2b.keystore" keystorePass="password" keyAlias="btIEgen"
clientAuth="false" sslProtocol="TLS" />
Upon starting Tomcat I get the darn error.
I then did a keytool -list on b2b.keystore, and noticed that the alias is in all lowercase, so after updating server.xml and restarting, I still get the same error, but for the lower case alias.
Then I though that perhaps I need a root CA. So I recreated the b2b.keystore as follows:
keytool -import -alias root -file myCA.cer -keystore b2b.keystore
Then I re-executed my keytool command against MyCompany.der
But I still get the same error, that the alias does not identify a key entry.
I am wondering if I am making some fundamental error in configuring tomcat, or should this thing be working and I'm just making a stupid careless mistake?
Any guidance would be greatly appreciated.