Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Tomcat7 for https

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.

like image 588
Sharifah Avatar asked Aug 10 '12 04:08

Sharifah


1 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 your server.xml file and also refer this link might be useful to you.

like image 192
Ami Avatar answered Oct 10 '22 08:10

Ami