I created a .jks file with this command
keytool -genkey -alias TeamCity -keyalg RSA -keystore KeyStoreTC.jks -keysize 2048
after that I moved the .jsk file to my directory but I am receiving this error
Failed to load keystore type JKS with path file:///C:/integrationProces/TeamCityDeploy/KeyStoreTC.jks due to C:\integrationProces\TeamCityDeploy\KeyStoreTC.jks (The system cannot find the path specified) java.io.FileNotFoundException: C:\integrationProces\TeamCityDeploy\KeyStoreTC.jks (The system cannot find the path specified)
The file is in that directory but I have no idea why the java.io.FileNotFoundException exception
I am using catalina(tomcat) and TeamCity and I am trying to enable https and this is my configuration in server.xml
<Connector port="8099" protocol="org.apache.coyote.http11.Http11NioProtocol"
SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="file:///C:/integrationProces/TeamCityDeploy/KeyStoreTC.jks"
keystorePass="mypass" />
I also commented this line of code in server.xml as a recommendation that I found in a forum
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
I appreciate any help