1. make tomcat use httpsA. run the JAVA_HOME/bin/keytool-genkey-aliastomcat-keyalgRSA-keystoreC:/Tomcat/GMAE3.0Tomcat/tomcat command. in this way, the keystore is generated and put...
1. enable tomcat to use https
A. run the JAVA_HOME/bin/keytool-genkey-alias tomcat-keyalg command.
RSA-keystore C:/Tomcat/GMAE3.0Tomcat/tomcat. keystore
In this way, the KeyStore is generated and put in the appropriate place (wherever possible)
B. open the server. xml file in the tomcat directory and find the ssl-related section.
[Xhtml: collapse] + expand sourceview plaincopy
C. remove the comment and add keystoreFile = "C:/Tomcat/GMAE3.0Tomcat/tomcat. keystore"
KeystorePass = "tomcat" attributes
After the modification, the configuration is as follows:
Java code
D. restart tomcat to use HTTPS for access.
2. force https access
In tomcat/conf/web. xmlAdd this