带crl的tomcat6无法加载

时间:2012-11-20 14:07:55

标签: ssl openssl tomcat6 certificate

我有一个新的tomcat6.0.34设置我在CentOS 6.3(64位)上配置。我已经为我正在使用的证书颁发机构下载了一系列CRL,使用openssl将它们从DER转换为PEM:

openssl crl -inform DER -outform PEM -in f1.der -out f1.pem_crl
openssl crl -inform DER -outform PEM -in f2.der -out f2.pem_crl

然后我构建了一个包含所有pem_crls的crl包(最终得到283 MB crl):

cat *.pem_crl > CRL-bundle.crl

最后,我将其移至/ etc / ssl / certs

mv CRL-bundle.crl /etc/ssl/certs

我按如下方式配置连接器:

<Connector port="8080" protocol="HTTP/1.1"
           SSLEnabled="true"
           maxHttpHeaderSize="8192"
           maxThreads="150"
           minSpareThreads="25"
           maxSpareThreads="75"
           enableLookups="false"
           acceptCount="100"
           disableUploadTimeout="true"
           compression="on"
           compressableMimeType="text/html,text/xml,text/plain,text/css,text/
           javascript,application/xml,application/x-javascript,application/javascript"
           connectionTimeout="20000"
           secure="true"
           keystorePass="mykeystorepass"
           truststoreFile="/etc/ssl/certs/my.truststore"
           truststorePass="mytruststorepass"
           clientAuth="true"
           sslProtocol="TLS"
           crlFile="/etc/ssl/certs/CRL-bundle.crl"
           redirectPort="8443" />

当我尝试像这样启动tomcat6时,我的catalina.out中只出现一个条目

Nov 20, 2012 8:58:29 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

如果删除crlFile中的server.xml引用,一切正常(当然除了crl查找)。系统启动,应用程序可访问,它会提示输入证书......

任何关于为什么会失败的想法都会受到赞赏。

0 个答案:

没有答案