Tomcat ssl报错Connector attribute SSLCertificateFile must be defined when using SSL with APR解决方法
今天同事要求帮忙配置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文件里,他们原来是
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" enableLookups="false"
acceptCount="100" disableUploadTimeout="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="Users\loiane/.keystore"
keystorePass="password" />
修改为:
复制代码 代码如下:<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
enableLookups="false"
acceptCount="100" disableUploadTimeout="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="Users\loiane/.keystore"
keystorePass="password" />
您可能感兴趣的文章:
- IntelliJ IDE运行Tomcat报错解决办法
- 解决应用启动失败但tomcat不报错的方法
- Tomcat启动时报错:java.lang.UnsatisfiedLinkError的解决
- Tomcat报错: JDBC unregister 解决办法
- Tomcat报错:HTTP Status 500 (Wrapper cannot find servlet class)解决办法
- tomcat报错:Wrapper cannot find servlet class ...问题解决
- CentOS 6.5上的Tomcat启动报错问题解决方法
- 启动Tomcat报错Unsupported major.minor version xxx的解决方法
- 对连串英文自动换行的解决方法 IE5.5 无忧脚本
- 解决BoundsChecker和VC打架的方法
- 用javascript连接数据库的解决方法
- 安装VS.net 2003时发生错误(ERROR: 内部错误 2337)的解决方法
- 系统出问题后的解决方法
- 打开*.HLP时,系统提示"*.hlp是为此Windows版本不支持的语言创建的"的解决方法!
- VC#.NET下基于WinForm的系统登录程序解决方法
- 水晶报表使用经验谈1--建立水晶报表第一步及编译最易出现错误的解决方法及报表转换成pdf文档进行打印方法
- .Net反射技术应用解决对象不同版本方法不同参数的问题
- XWindow显卡配置通用解决方法 Xconfigurator
- 采用DOM模型时创建一个Select节点后,要删除option项的解决方法
- ListBox中的字符串超长显示的解决方法
- len(),lift(),right()不能正常识别中文的解决方法
- Visual C++6.0一个小BUG的解决方法
- 防止ACCESS数据库被下载的一个通用解决方法:
- [导入]解决BoundsChecker和VC打架的方法
- 升级到IE6之后在后面补上的不是com而是co.cn--解决方法
- Java , Installanywhere 在 Redhat 上的中文问题解决方法
- Delphi调试断点无效的解决方法
- 解决用VS.NET开发Web应用程序和Subversion的冲突 方法一