Tomcat uses SSL connection

Source: Internet
Author: User
Tags ssl certificate ssl connection

If you need more formal SSL processing, contact the CA or use the OpenSSL tool.

**************************************** ******************
* Create an SSL Certificate
**************************************** ******************
D:/protools/jbuilderx/jdk1.4/JRE/bin> keytool-genkey-keyalg RSA
-Alias cidsoftkey-keystore. keystore
Enter the keystore password: changeit
What is your first name and last name?
[UNKNOWN]: James. W
What is the name of your organization?
[UNKNOWN]: Cid Software
What is your organization name?
[UNKNOWN]:Www.yourname.com
What is the name of your city or region?
[UNKNOWN]: Shanghai
What is the name of your state or province?
[UNKNOWN]: Shanghai
What is the two-letter country code for this unit?
[UNKNOWN]: CN
CN = James. W, ou = CID software, O = www.cid.com.cn, L = Shanghai, St = Shanghai, c = cn correct?
[No]: Y

Enter the <cidsoftkey> master password
(If the password is the same as the keystore password, press Enter ):


**************************************** *******************
* Modify the server. xml file
**************************************** *******************
<Connector classname = "org. Apache. Coyote. tomcat4.coyoteconnector"
Port = "8443" minprocessors = "5" maxprocessors = "75"
Enablelookups = "true"
Acceptcount = "100" DEBUG = "0" Scheme = "HTTPS" secure = "true"
Useurivalidationhack = "false" disableuploadtimeout = "true">
<Factory classname = "org. Apache. Coyote. tomcat4.coyoteserversocketfactory"
Clientauth = "false" protocol = "TLS"
Keystorefile = "D:/zdcvs/zhenda/tomcat4.1.30/CONF/. keystore"
Keystorepass = "changeit"
/>
</Connector>
NOTE: If Tomcat is configured to not authenticate the customer identity, set clientauth = "false ".

**************************************** *******************
* Access Method
**************************************** *******************
Http: // yourname: 8443/

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.