小编nig*_*ter的帖子

tomcat和apr中的SSL配置

我在使用apr native lib设置我的tomcat时遇到问题,我有以下内容:

Tomcat: 7.0.42
Java: 1.7.0_40-b43
OS: Centos 6.4 (2.6.32-358.18.1.el6.i686)
APR: 1.3.9
Native lib: 1.1.27
OpenSSL: openssl-1.0.0-27.el6_4.2.i686
Run Code Online (Sandbox Code Playgroud)

我的server.xml看起来像:

...
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
...
<Connector port="8443" protocol="HTTP/1.1"
SSLEnabled="true" maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
SSLCertificateFile="/tmp/monitoringPortalCert.pem"
SSLCertificateKeyFile="/tmp/monitoringPortalKey.pem"
SSLPassword="hide"
/>
...
Run Code Online (Sandbox Code Playgroud)

我编译了本机库,如下所示:

./configure --with-apr=/usr/bin/apr-1-config --with-ssl=yes --prefix=$CATALINA_HOME 
make && make install
Run Code Online (Sandbox Code Playgroud)

APR加载好了:

Oct 06, 2013 7:55:14 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.3.9.
Run Code Online (Sandbox Code Playgroud)

但我仍然有这个错误:

SEVERE: Failed to initialize the SSLEngine.
org.apache.tomcat.jni.Error: 70023: This function …
Run Code Online (Sandbox Code Playgroud)

java tomcat7

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

java ×1

tomcat7 ×1