Tomcat ssl報錯Connector attribute SSLCertificateFile must be defined when using SSL with APR解決方法
今天同事要求幫忙配置tomcat ssl,直接把linux下tomcat配置ssl這篇文章發(fā)給他了,沒想到他居然說啟動tomcat的時候,報Connector attribute SSLCertificateFile must be defined when using SSL with APR的錯誤,馬上跑過去看,原來他的tomcat版本是7.0的,我發(fā)給他的是tomcat6的,檢查了key,檢查了配置文件,因為他直接復(fù)制的我發(fā)他文章的配置,折騰了2-3個小時,終于把問題給解決了.
系統(tǒng):windows 7
環(huán)境: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" />
相關(guān)文章
tomcat啟動異常:子容器啟動失敗(a child container failed&n
這篇文章主要介紹了tomcat啟動異常:子容器啟動失敗(a child container failed during start),如果你也遇到了這個問題,那么這篇文章應(yīng)該可以幫助到你,一起來看看吧2023-03-03
Linux上tomcat的虛擬主機IP映射配置(圖片服務(wù)器)
有時候我們會使用tomcat作為一個圖片資源服務(wù)器,本文主要介紹了Linux上tomcat的虛擬主機IP映射配置,通過tomcat服務(wù)器來訪問我們的圖片,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2023-08-08
TOMCAT啟動失敗using?catalina_opts為空的解決方法
這篇文章主要給大家分享了TOMCAT啟動失敗using?catalina_opts為空的解決方法,文中有詳細的解決流程,具有一定的參考價值,需要的朋友可以參考下2023-10-10
簡單實現(xiàn)nginx+tomcat的反向代理與動靜分離
這篇文章主要介紹了簡單實現(xiàn)nginx+tomcat的反向代理與動靜分離,需要的朋友可以參考下2016-05-05

