Use JDK Keytool in Ubuntu to configure the SSL protocol of Tomcat7.0 (simple one-way authentication version) 1. use the built-in JDK Keytool to generate the server certificate: Open the terminal console, switch to the tomcat main directory, and run the command to generate the keystore file: keytool-genkey-aliastomcat-keyalgRSA-keypasstomcat-store
Use JDK Keytool in Ubuntu to configure the SSL protocol of Tomcat7.0 (simple one-way authentication version)
1. Use the built-in JDK Keytool to generate a server certificate:
Open the terminal console, switch to the tomcat main directory, and run the command to generate the keystore file:
Keytool-genkey-alias tomcat-keyalg RSA-keypass tomcat-storepass tomcat-keystore server. keystore-validity 3600
-- Generate the server. keystore file in the tomcat main directory;
2. Modify tomcat configuration: conf/server. xml
MaxThreads = "150" scheme = "https" secure = "true"
ClientAuth = "false" sslProtocol = "TLS"
KeystoreFile = "server. keystore" keystorePass = "tomcat"
/>
3. https: // 127.0.0.1: 8443/open the tomcat homepage.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2