Tomcat installs the self-made SSL certificate

Source: Internet
Author: User
Tags ssl certificate

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

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.