tomcat8 Alibaba Cloud server https configuration

1: Create a new cert directory under tomcat, download the certificate to the cert directory and unzip it

 

2: Configure server.xml

 

<Connector port="443" protocol="HTTP/1.1"

               SSLEnabled="true"

               scheme="https"

               secure="true"

               keystoreFile="cert/214349969780479.pfx"

               keystoreType="PKCS12"

               keystorePass="214349969780479"

               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"/>

 

 

3: The most critical point is to open port 443. Since the Alibaba Cloud server is opened in the console, please pay attention to opening port 443 in the console! ! ! Due to the port, it took 3,4 hours to get it done, record it, so as not to make the same mistake next time

 

server.xml can refer to the attachment, the content is the above, if https is enabled, the default port of http:8080 needs to be configured to be closed

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326017331&siteId=291194637