最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
解决tomcat配置ssl报Connector attribute SSLCertificateFile
时间:2014-03-07 编辑:简简单单 来源:一聚教程网
今天同事要求帮忙配置tomcat ssl,直接把linux下tomcat配置ssl这篇文章发给他了,没想到他居然说启动tomcat的时候,报Connector attribute SSLCertificateFile must be defined when using SSL with APR的错误,马上跑过去看,原来他的tomcat版本是7.0的,我发给他的是tomcat6的,检查了key,检查了配置文件,因为他直接复制的我发他文章的配置,折腾了2-3个小时,终于把问题给解决了.
系统:windows 7
环境:tomcat7
1.先重新给他生成key
keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password: password
Re-enter new password: password
What is your first and last name?
[Unknown]: Loiane Groner
What is the name of your organizational unit?
[Unknown]: home
What is the name of your organization?
[Unknown]: home
What is the name of your City or Locality?
[Unknown]: Sao Paulo
What is the name of your State or Province?
[Unknown]: SP
What is the two-letter country code for this unit?
[Unknown]: BR
Is CN=Loiane Groner, OU=home, O=home, L=Sao Paulo, ST=SP, C=BR correct?
[no]: y
Enter key password for
(RETURN if same as keystore password): password
Re-enter new password: password
2.tomcat配置ssl
打开server.xml文件里,他们原来是
acceptCount="100" disableUploadTimeout="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="Usersloiane/.keystore"
keystorePass="password" />
修改为:
enableLookups="false"
acceptCount="100" disableUploadTimeout="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="Usersloiane/.keystore"
keystorePass="password" />
然后重启tomcat,没有报错,搞定闪人.
原文来自:blog.slogra.com/
相关文章
- 诺基亚9怎么样 诺基亚9配置是什么 08-02
- 驱动人生如何检测系统配置 07-17
- HTC U12曝渲染图 全面屏+前置双摄 配置绝了 07-13
- NDK的debug环境怎么配置 07-11
- 魅族PRO 7外观配置价格全曝光 双屏双摄与众不同 07-08
- hp yunos book 10 g1有什么配置 07-07