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" />
相关文章
tomcat启动异常:子容器启动失败(a child container failed&n
这篇文章主要介绍了tomcat启动异常:子容器启动失败(a child container failed during start),如果你也遇到了这个问题,那么这篇文章应该可以帮助到你,一起来看看吧2023-03-03
Linux上tomcat的虚拟主机IP映射配置(图片服务器)
有时候我们会使用tomcat作为一个图片资源服务器,本文主要介绍了Linux上tomcat的虚拟主机IP映射配置,通过tomcat服务器来访问我们的图片,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧2023-08-08
TOMCAT启动失败using catalina_opts为空的解决方法
这篇文章主要给大家分享了TOMCAT启动失败using catalina_opts为空的解决方法,文中有详细的解决流程,具有一定的参考价值,需要的朋友可以参考下2023-10-10


最新评论