> -----Original Message-----
> From: Kevin Jenkins [mailto:rak...@jenkinssoftware.com]
> Sent: Wednesday, March 27, 2013 11:46 AM
> To: users@tomcat.apache.org
> Subject: SSLCertificateKeyFile cannot find file that exists
>
> 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.

You need to either use the APR connector, or convert the key file and 
certificate file to a JKS store, and update your configuration.

Jeffrey Harris

This e-mail and any attachments are intended only for the use of the 
addressee(s) named herein and may contain proprietary information. If you are 
not the intended recipient of this e-mail or believe that you received this 
email in error, please take immediate action to notify the sender of the 
apparent error by reply e-mail; permanently delete the e-mail and any 
attachments from your computer; and do not disseminate, distribute, use, or 
copy this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to