Tomcat Configuration HTTPS method

Source: Internet
Author: User

1. The first step is to enter the console (Windowsis acmd)

Keytool is a Java The secret key tool that comes with the %java_home%/bin directory.

Enter the command:

Keytool-v-genkey-aliastomcat

-keyalg rsa-keystore d:/keystore/tomcat.keystore-validity 36500  

Brief description of the parameters:

D:/keystore/tomcat.keystore The meaning is to save the path of the certificate file, the certificate file name is tomcat.keystore ;"-validity 36500" means the certificate validity period,36500 represents 100 year, the default value is "Tomcat" for the custom certificate name

After the command returns:

Continue to enter

2. ModifyTomcatconfiguration file:server.xml

Add the following configuration

3. To modify a project configuration file:Web . Xml

4. to thisHTTPSconfiguration is complete.

From for notes (Wiz)

Tomcat Configuration HTTPS method

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.