I'm working on a project where I need to test C++ code against an HTTPS web server. So I am trying to get Tomcat to work using HTTPS on localhost. Security does not matter right now, I just need to get an HTTPS server online so I can debug the C++.
So I went to http://www.selfsignedcertificate.com/ and under server name entered localhost. It gave me 2 files: 3589340_localhost.key 3589340_localhost.cert I copied those files to D:\apache-tomcat-7.0.37\conf I added this line to d:/apache-tomcat-7.0.37/confg/server.xml <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="SSLv3" SSLCertificateKeyFile="${catalina.base}\conf\3589340_localhost.key" SSLCertificateFile="${catalina.base}\conf\3589340_localhost.cert" /> I double click "D:\apache-tomcat-7.0.37\bin\startup.bat" It doesn't work. I don't understand why it does it does not find a matching property. The file is there on the harddrive. WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'SSLC ertificateFile' to 'D:\apache-tomcat-7.0.37\conf\3589340_localhost.cert' did not find a matching property. Mar 27, 2013 8:44:44 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Mar 27, 2013 8:44:44 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-443"] Mar 27, 2013 8:44:44 AM org.apache.coyote.AbstractProtocol init SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bi o-443"] java.io.IOException: Keystore was tampered with, or password was incorrect at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771) at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:3 8) at java.security.KeyStore.load(KeyStore.java:1185) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocket Factory.java:372) Thanks in advance for the help.