At present, I found that the tomcat6 version cannot properly configure the SSL certificate
I am using tomcat7 and tomcat8 version
Copy the jks file of the certificate to the conf directory, at the same level as server.xml
Open server.xml and find <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol". This piece of code was originally commented out. Remove the comment to modify it and change it to the following code, port for 443
keystoreFile is the absolute path to your certificate
keystorePass is your secret key
After modification, save and restart tomcat. If no error is reported, just visit https://your domain name and you’re done