Tomcat supports settings for https requests

1. To enable tomcat to support https requests, the following settings are required:
1. Generate a certificate
2. Apply the certificate to Tomcat
3. Automatically turn tomcat's http requests to https.
2. Detailed settings:
1. Purchase a certificate on Wosign (https://buy.wosign.com), extract it to get the jks certificate.
2. Apply the certificate to Tomcat and
modify the conf/server.xml file
1) Uncomment and modify it as :
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="${ FilePath}” keystorePass=”password” />
2) Modify the port forwarded from http to https
<Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />
3.



<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326680806&siteId=291194637