大家好,又见面了,我是你们的朋友全栈君。
WmImac-52:~ fanyuanhua$ keytool -list -printcert -jarfile /Users/fanyuanhua/2019-10/备忘录记事本/10.25/app-tencent-release-11.1.2_2019-10-25_11-50-06_legu_aligned_signed.apk
签名者 #1:
签名:
所有者: CN=xiangdongli, OU=xiangdongli, O=xiangdongli, L=wuhan, ST=Hubei, C=CN
发布者: CN=xiangdongli, OU=xiangdongli, O=xiangdongli, L=wuhan, ST=Hubei, C=CN
序列号: 3284e883
有效期开始日期: Fri Jul 07 19:22:36 CST 2017, 截止日期: Tue Jul 01 19:22:36 CST 2042
证书指纹:
MD5: 31:80:D7:D5:54:D8:69:7F:72:18:D6:22:00:4C:3C:E8
SHA1: BD:70:2A:EC:52:5C:FE:49:A0:B9:53:CB:71:95:23:5B:ED:07:D4:ED
SHA256: 1C:8A:FC:DC:56:26:67:02:7E:A1:6B:3B:4D:63:87:9A:97:24:F7:E1:B0:D4:97:C2:EA:33:3D:31:32:A7:A6:DF
签名算法名称: SHA256withRSA
版本: 3
扩展:
#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 45 30 47 C3 EA 5C BB BD 23 2F 61 9D A5 4C 0B 7A E0G..\..#/a..L.z
0010: 76 BE 5A EC v.Z.
]
]
keytool -v -list -keystore keystore.jks
keytool -changealias -keystore my.jks -alias myalias -destalias otheralias
keytool -delete -alias myalias -keystore my.jks -storepass jkspassword
jarsigner -verify -verbose -certs app-release.apk
keytool -genkey -alias myalias -keyalg RSA -keystore my.jks -keysize 2048 -validity 9125 -dname “CN=FirstAndLastName, OU=OrganizationalUnit, O=Organization, L=CityOrLocality, ST=StateOrProvince, C=CountryCode, EMAILADDRESS=vanhua@gmail.com”
—-注:-keyalg:加密算法 -keysize:加密位数 -validity:有效期(天) -dname:证书详细信息
keytool -export -alias myalias -keystore my.jks -file myalias.crt -storepass jkspassword
keytool -printcert -file myalias.crt
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/133557.html原文链接:https://javaforall.cn