2015-07-12 12:42 GMT+03:00 Joby J. Joseph <jjos...@bankboubyan.com>: > Hi, > > Thanks for the reply. > I have followed the same steps provided by the tomcat documentation. > > https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration > > > First I created the keystore file by executing the command ... > > "%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA >
Read the rules: http://tomcat.apache.org/lists.html#tomcat-users -> 6. Top-posting is bad. The manual for keytool is part of JDK documentation http://docs.oracle.com/javase/7/docs/technotes/tools/index.html http://docs.oracle.com/javase/7/docs/technotes/tools/windows/keytool.html If "-keystore" option is not given (with explicit path to .keystore), the default is "the file named .keystore in the user's home directory". That is "%USERPROFILE%\.keystore" On Windows 7 %USERPROFILE% is usually C:\Users\<username> > Then I added it in the config file. > > <Connector > protocol="org.apache.coyote.http11.Http11NioProtocol" > port="8443" maxThreads="200" > scheme="https" secure="true" SSLEnabled="true" > keystoreFile="${user.home}/.keystore" keystorePass="changeit" > clientAuth="false" sslProtocol="TLS"/> > > Here. I got the error as... > > > > SEVERE: Failed to load keystore type JKS with path > C:\Windows\system32\config\systemprofile/.keystore due to > C:\Windows\system32\config\systemprofile\.keystore (The system cannot find > the file specified) > java.io.FileNotFoundException: > C:\Windows\system32\config\systemprofile\.keystore (The system cannot find > the file specified) I guess that you (the user running keytool) and the user running Tomcat are two different users, so their "%USERPROFILE%" is different -- see the above path. It looks that you are running Tomcat with a system service account. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org