linux操作系统tomcat服务器下怎么配置https
2个回答
展开全部
1、前提是你要有keystore.jks且存有ssl证书
2、修改tomcat配置文件conf/server.xml,添加https配置即可
3、例如
<Connector port="443" maxHttpHeaderSize="8192"
protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="5000" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
URIEncoding="UTF-8"
keystoreFile="/opt/keystore/keystore.jks"
keypass="password2"
clientAuth="false" sslProtocol="TLS" />
2、修改tomcat配置文件conf/server.xml,添加https配置即可
3、例如
<Connector port="443" maxHttpHeaderSize="8192"
protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="5000" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
URIEncoding="UTF-8"
keystoreFile="/opt/keystore/keystore.jks"
keypass="password2"
clientAuth="false" sslProtocol="TLS" />
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询