After installing JIRA (Tomcat server) we've noticed we have security issues (clear password). So we decided to implement SSL.
We decided to follow steps based on these two tutorials :
We are using:
- A certificate generate by a Certificate Authority.
- Tomcat 7
- Windows server 2008 R2
Our steps:
- Import the certificate (with the
keytool
command, the all chain) - Add Java argument (
-Djavax.net.ssl.trustStore=
andDjavax.net.ssl.trustStorePassword
) - Change
server.xml
file (remove the comments and edit the SSL part) - Restart Tomcat service (and the server)
Results:
- SSL is not working
- We can see trustedCertEntry and PrivateKeyEntry in personal store of windows
After investigation we think the issue is that the entry in our keystore are trustedCertEntry and there is no PrivateKeyEntry.
Do we need to import PrivateKeyEntry into the Tomcat keystore? If yes, how we can import PrivateKeyEntry into a keystore?