Running Tomcat7 for https

When I changed https for secure connection in server.xml 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 have error when starting tomcat from IDE

Called: java.io.FileNotFoundException: C: \ Documents and Settings \ User.keystore (the system cannot find the specified file) in java.io.FileInputStream.open (native method)

but there is no error starting tomcat 7.0 / bin / tomcat7.exe.

What is wrong with these two? Please explain me! Thank.

+5
source share
2 answers

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 the server.xml file, and the link may be useful to you.

+4
source

I think you need to create a new keystore file and which you can generate by running this command.

% JAVA_HOME%\bin > keytool.exe -genkey -alias tomcat -keyalg RSA

. Tomcat SSL. , .

0

All Articles