运行Tomcat7 for https [英] Running Tomcat7 for https

查看:147
本文介绍了运行Tomcat7 for https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在tomcat 7.0的server.xml中更改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"
/>

从IDE运行tomcat时出错

I've an error when running tomcat from IDE

引起:java.io.FileNotFoundException:C:\Documents and Settings \User.keystore(系统找不到指定的文件)
at java.io.FileInputStream.open(原生方法)

但运行tomcat 7.0 / bin / tomcat7.exe没有错误。

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

这两个有什么不对?请解释一下我!谢谢。

What wrong in these two? Please explain me! Thanks.

推荐答案

我认为你需要一个.key-store文件。

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>

检查你的server.xml文件,并参考这个链接可能对您有用。

check your server.xml file and also refer this link might be useful to you.

这篇关于运行Tomcat7 for https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆