360SDN.COM

首页/Tomcat/列表

Tomcat8.5 / 9 安装ssl证书

来源:PHP学习中心  2017-09-11 11:41:16    评论:0点击:

Tomcat 8.5 以上版本支持 SNI ( 同IP可以安装多个证书 ), 至少 jre 7 以上版本

<Connector port="8443"

protocol="org.apache.coyote.http11.Http11Nio2Protocol"

maxThreads="150"

SSLEnabled="true"

defaultSSLHostConfigName="" >

<SSLHostConfig hostName="" >

<Certificate certificateKeystoreFile=""

certificateKeystorePassword=""

type="RSA" />

</SSLHostConfig>

// 其他站点复制多个 SSLHostConfig

</Connector>

使用Apache证书安装SSL

<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"

maxThreads="150" SSLEnabled="true">

<SSLHostConfig>

<Certificate certificateKeyFile=""

certificateFile=""

certificateChainFile=""

type="RSA" />

</SSLHostConfig>

</Connector>

protocol 可选:

org.apache.coyote.http11.Http11NioProtocol - non blocking Java NIO connector

org.apache.coyote.http11.Http11Nio2Protocol - non blocking Java NIO2 connector

org.apache.coyote.http11.Http11AprProtocol - the APR/native connector.

具体的配置参数请参考 tomcat官方文档

https://tomcat.apache.org/tomcat-9.0-doc/config/http.html

阅读原文

为您推荐

友情链接 |九搜汽车网 |手机ok生活信息网|ok生活信息网|ok微生活
 Powered by www.360SDN.COM   京ICP备11022651号-4 © 2012-2016 版权