Tomcat ssl報(bào)錯(cuò)Connector attribute SSLCertificateFile must be defined when using SSL with APR解決方法
今天同事要求幫忙配置tomcat ssl,直接把linux下tomcat配置ssl這篇文章發(fā)給他了,沒想到他居然說啟動(dòng)tomcat的時(shí)候,報(bào)Connector attribute SSLCertificateFile must be defined when using SSL with APR的錯(cuò)誤,馬上跑過去看,原來他的tomcat版本是7.0的,我發(fā)給他的是tomcat6的,檢查了key,檢查了配置文件,因?yàn)樗苯訌?fù)制的我發(fā)他文章的配置,折騰了2-3個(gè)小時(shí),終于把問題給解決了.
系統(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實(shí)現(xiàn)WebSocket的方法
WebSocket協(xié)議屬于HTML5標(biāo)準(zhǔn),越來越多瀏覽器已經(jīng)原生支持WebSocket,它能讓客戶端和服務(wù)端實(shí)現(xiàn)雙向通信。這篇文章主要介紹了Tomcat實(shí)現(xiàn)WebSocket的方法的相關(guān)資料,需要的朋友可以參考下2016-11-11
tomcat啟動(dòng)異常:子容器啟動(dòng)失敗(a child container failed&n
這篇文章主要介紹了tomcat啟動(dòng)異常:子容器啟動(dòng)失敗(a child container failed during start),如果你也遇到了這個(gè)問題,那么這篇文章應(yīng)該可以幫助到你,一起來看看吧2023-03-03
Linux上tomcat的虛擬主機(jī)IP映射配置(圖片服務(wù)器)
有時(shí)候我們會(huì)使用tomcat作為一個(gè)圖片資源服務(wù)器,本文主要介紹了Linux上tomcat的虛擬主機(jī)IP映射配置,通過tomcat服務(wù)器來訪問我們的圖片,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2023-08-08
TOMCAT啟動(dòng)失敗using?catalina_opts為空的解決方法
這篇文章主要給大家分享了TOMCAT啟動(dòng)失敗using?catalina_opts為空的解決方法,文中有詳細(xì)的解決流程,具有一定的參考價(jià)值,需要的朋友可以參考下2023-10-10
簡單實(shí)現(xiàn)nginx+tomcat的反向代理與動(dòng)靜分離
這篇文章主要介紹了簡單實(shí)現(xiàn)nginx+tomcat的反向代理與動(dòng)靜分離,需要的朋友可以參考下2016-05-05
WIN2003下IIS6集成一個(gè)或多個(gè)Tomcat的方法
由于IIS配置與PHP的集成網(wǎng)上很多,所以這里我只記錄IIS與JAVA服務(wù)器Tomcat的集成,需要的朋友可以參考下2014-07-07

