Tomcat配置SSL证书(https)

vim conf/server.xml 添加以下节点:

 443
    protocol="HTTP/1.1"
    SSLEnabled="true"
    scheme="https"
    secure="true"
    keystoreFile=" " #tomcat ssl证书文件所在服务器路径
    keystoreType="PKCS12"
    keystorePass=" " #证书秘钥
    clientAuth="false"
    SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"   ciphers="TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256"/>

 

你可能感兴趣的:(Tomcat配置SSL证书(https))