1. Execution of Orders
C:\servers\apache-tomcat-8.0.27>keytool-genkey-alias tomcat-keyalg rsa-keypass pass123456 -storepass pass123456 -keystore server.keystore-validity 3600
2, prompt information input
What is your first and last name?
[Unknown]: hifong.cn
What is the name of your organizational unit?
[Unknown]: Aspire
What is your organization's name?
[Unknown]: ASP
What is the name of your city or region?
[Unknown]: GZ
What is the name of your state/province?
[Unknown]: GD
What is the two-letter country/region code for this unit?
[Unknown]: CN
Cn=hifong, Ou=aspire, o=asp, L=gz, ST=GD, C=CN right?
[No]: Y
3. Tomcat Configuration
<connector port= "8443" protocol= "Org.apache.coyote.http11.Http11NioProtocol"
Maxthreads= "sslenabled=" true "scheme=" "https" secure= "true"
Clientauth= "false" sslprotocol= "TLS" keystorefile= "C:\servers\apache-tomcat-8.0.27\server.keystore" keystorepass= "pass123456"/>
Note the point:
- 1th, 22 pass like
- 3rd, the name is the same as the domain/IP accessed, such as the subsequent use only http://hifong.cn/xxx access, not localhost or 127.0.0.1, etc.
- 4th, 5 is consistent with the previously generated documents and passwords
Tomcat installs the self-made SSL certificate