SSL: Tomcat 5.5 Configure One-way SSL Instruction

Abstract:

This instruction will guide you how to configure one-way SSL in tomcat 5.5

Instruction:

Step1: Running keytool

Open cmd and execute following command.

keytool -genkey -alias tomcat -keyalg RSA -keypass yourpassword -storepass yourpassword -keystore C:/Tomcat55/keystore -validity 3600

Parameters:

-alias: Indicate a name which identify a entry in a keystore

-keyalg: Indicate encryption algorithm (Recommendation: RSA)

-keypass: Replace this param by your password.

-storepass: Replace this param by keypass password.

-keystore: The location where your store keystore file.

-validity: Indicate how many days will be valid for this keystore. (Default is 90 days.)

Step2: Config keytool

Complete following parameter as shown.

您的名字与姓氏是什么?
  [Unknown]:  localhost   (Fill this blank with your granted domain or any others as testing)
您的组织单位名称是什么?
  [Unknown]:  Personal Testing.    (Any String is OK.)
您的组织名称是什么?
  [Unknown]:  Personal Testing.    (Any String is OK.)
您所在的城市或区域名称是什么?
  [Unknown]:  Beijing                     (Your city.)
您所在的州或省份名称是什么?
  [Unknown]:  Beijing                     (Your state.)
该单位的两字母国家代码是什么
  [Unknown]:  CN                           (Your country code.)
CN=localhost, OU=Personal Testing., O=Personal Testing., L=Beijing, ST=Beijing,
C=CN 正确吗?
  [否]:  y                                         (Enter with ‘Y’ if everything is fine.)

After above, you should able to see a file named ‘keystore’ in C:/Tomcat55.

Step3: Config Server.xml

Open server.xml from C:/Tomcat55/conf. Then edit related configuration as below.

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yexianyi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值