<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150" SSLEnabled="true" keystoreFile="conf/cent.pfx"
keystoreType="PKCS12"
keystorePass="这是密码">
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
certificateFile="conf/localhost-rsa-cert.pem"
certificateChainFile="conf/localhost-rsa-chain.pem"
type="RSA" />
</SSLHostConfig>
</Connector>
以上是我tomcat的server.xml中的内容。证书在tomcat的目录的conf目录下我检查了都没有问题,但是为什么tomcat启动之后,没反应,8080端口也没有占用,也就是感觉压根没有启动成功
运行日志:
09-Jan-2019 14:21:52.394 WARNING [main] org.apache.catalina.startup.Catalina.load Catalina.start using conf/server.xml: Error at (113, 25) : Multiple SSLHostConfig elements were provided for the host name [_default_]. Host names must be unique.