Use JDK Keytool in Ubuntu to configure the SSL protocol of Tomcat7.0 (simple one-way authentication version)

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.