tomcat做虚拟主机的最好方法是复制,运行多个tomcat,避免tomcat挂掉,同时几个业务也挂掉
针对tomcat7,tomcat未实现
生成私钥证书文件:
mkdir -p /usr/local/tomcat/ssl
keytool -genkeypair -alias tomcat -keyalg RSA -keystore /usr/local/tomcat/ssl/keystore
修改配置文件
取消注释
找到修改或者直接添加:
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
keystoreFile="/usr/local/tomcat/ssl/keystore" keystorePass="123456"
clientAuth="false" sslProtocol="TLS" />
时间: 2024-11-03 22:17:02