set PATH=%PATH%;"D:\Program Files\Java\jre1.8.0_25\bin"
keytool -genkey -alias testapp -keyalg RSA -keysize 2048 -validity 36500 -keystore testapp.keystore
Enter keystore password: //testapp1992
Re-enter new password: //testapp1992
What is your first and last name?
[Unknown]: //testapp
What is the name of your organizational unit?
[Unknown]: //starg
What is the name of your organization?
[Unknown]: //starg
What is the name of your City or Locality?
[Unknown]: //xiamen
What is the name of your State or Province?
[Unknown]: //xiamen
What is the two-letter country code for this unit?
[Unknown]: //CN
Is CN=XX, OU=XX, O=XX, L=XX, ST=XX, C=XX correct?
[no]: //确认上面输入的内容是否正确,输入y,回车
Enter key password for <testalias>
(RETURN if same as keystore password): //确认证书密码与证书文件密码一样(HBuilder|HBuilderX要求这两个密码一致),直接回车就可以
keytool -list -v -keystore testapp.keystore
别名: testapp
创建日期: 2021-8-4
条目类型: PrivateKeyEntry
证书链长度: 1
证书[1]:
所有者: CN=testapp, OU=starg, O=starg, L=xiamen, ST=xiamen, C=CN
发布者: CN=testapp, OU=starg, O=starg, L=xiamen, ST=xiamen, C=CN
序列号: 18728bc0
有效期开始日期: Wed Aug 04 10:30:32 CST 2021, 截止日期: Fri Jul 11 10:30:32 CST 2121
证书指纹:
MD5: B4:14:19:EA:7A:D4:8F:E4:AB:D7:E9:04:11:C7:EB:7D
SHA1: 46:6E:CA:FA:58:45:05:29:5E:FF:00:D0:53:A0:D6:45:B4:63:B4:CB
SHA256: 91:8C:A9:14:E2:77:27:C6:36:EE:AC:DD:D6:08:22:2F:95:77:9A:63:E2:CE:34:A1:38:6C:F5:CF:13:31:9B:22
签名算法名称: SHA256withRSA
版本: 3
扩展:
#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: FF ED 61 5C 25 46 D5 40 30 1C 5D FA B8 D9 8C 8A ..a\%F.@0.].....
0010: AD 72 4D 0D .rM.
]
]
*******************************************
*******************************************
版权属于:
moonjerx
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论 (0)