Tomcat replaces HTTP with HTTPS

xiaoxiao2021-03-06  43

1. First create a certificate KeyStore with a tool keytore with JDK

Java_home / bin / keytool -genkey -alias tomcat -keyalg rsa / -keystore / path / to / my / keystore

2. If you are JAVA Secure Socket Extensions (JSSE), Version 1.0.2 or Later, and JAVA_HAR, JNET.JAR, JAVA_HOME / JRE / LIB / EXT If it is JDK1.4.x already there is already these packages.

3. Modify the server.xml file under the Tomcat directory, add

The value of the keystorepass is the password entered when generating the keystore.

Restart Tomcat, you can use HTTPS.

转载请注明原文地址:https://www.9cbs.com/read-73479.html

New Post(0)