When I changed https for secure connection in server.xml of tomcat 7.0
<Connector
clientAuth="false" port="8443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
SSLCertificateFile="test.cer"
SSLCertificateKeyFile="test.key"
SSLCACertificateFile="CertPath.txt"
SSLVerifyClient="require" SSLEngine="on" SSLVerifyDepth="2" sslProtocol="TLS"
/>
I've an error when running tomcat from IDE
Caused by: java.io.FileNotFoundException: C:\Documents and Settings\User.keystore (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method)
but there is no error by running tomcat 7.0/bin/tomcat7.exe.
What wrong in these two? Please explain me! Thanks.
I think you need a .key-store file.
<Connector port=”443” maxHttpHeaderSize=”8192″
maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
enableLookups=”false” disableUploadTimeout=”true”
acceptCount=”100″ scheme=”https” secure=”true”
**keystoreFile=”/home/Raja/Desktop/Tomcat5/mycert.jks”**
clientAuth=”false” sslProtocol=”TLS>
check your server.xml file and also refer this link might be useful to you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With