Tomcat连接器匹配属性警告

nik*_*tsa 4 java security ssl tomcat ssl-certificate

我正在尝试配置tomcat以使用SSL处理连接,为密钥库提供服务器证书和信任库以供客户端证书信任.连接器配置如下所示:

<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
    maxThreads="200"
    SSLEnabled="true"
    scheme="https"
    secure="true"
    keystoreFile="/server_certs/webserver_certificate.p12"
    keystorePass="password"
    keystoreType="pkcs12"
    trustoreFile="/server_cert/truststore_dev.jks"
    trustorePass="changeit"
    trustoreType="jks"
    clientAuth="true"
    sslProtocol="TLS" />
Run Code Online (Sandbox Code Playgroud)

上面的问题是我在日志中收到以下警告:

"警告:[SetAllPropertiesRule] {服务器/服务/连接器}将属性"trus toreFile"设置为"C:\ Apps\apache\apache-tomcat-7.0.41\server_certs\truststore_dev.jk s"未找到匹配的属性. "

我猜这意味着不考虑信任库.当我尝试访问网页时,它抱怨客户端没有服务器所需的任何证书.

我在做什么有什么不对吗?我认为trustoreFile,truststorePasstruststoreType是Connector的常见属性.

任何帮助非常感谢.

Ste*_*n C 6

You have misspelled some of the attribute names. For example, there is no "trustoreFile" attribute ... but there is a "truststoreFile" attribute.

See http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support for the correct spellings.