在开发安卓APP的过程中,有一些时候,我们会不小心忘记安卓APP证书的签名信息。我们可以通过本地cmd命令来快速获取查看安卓证书的签名信息。
1.首先打开win+R拉起cmd
之后cd命令进入到自己安卓证书所在文件夹
2.之后我们执行命令
keytool -list -v -keystore test.keystore
Enter keystore password: //输入密码,回车
keytool -list -v -keystore test.keystore
Enter keystore password: //输入密码,回车
test.keystore中的test修改为您的证书文件名
跟着输入您的证书文件密码
之后回车,回车之后就会列出您的安卓签名信息
Keystore type: PKCS12
Keystore provider: SUN
Your keystore contains 1 entry
Alias name: test
Creation date: 2022-03-28
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[APP封装;1]:
Owner: CN=Tester, OU=Test, O=Test, L=HD, ST=BJ, C=CN
Issuer: CN=Tester, OU=Test, O=Test, L=HD, ST=BJ, C=CN
Seriapp发布页生成al number: 7dd12840
Valid from: Fri Jul 26 10:12:26 CST 2022 until: Sun Jul 02 10:12:26 CST 2122
Certificate fingerprints:
MD5: 24:D2:CA:F6:3A:1A:13:ED:8D:B6:8E:19:82:E1:F3:F5
SHA1: AA:16:27:91:83:39:EC:AA:E9:22:9E:6C:9C:3E:91:C5:59:1E:8F:12
SHA256: D6:00:56:1E:3B:89:AC:23:5E:B3:0B:36:8E:A5:2F:9D:47:49:04:05:0C:18:71:A3:5E:CA:A2:09:0A:B5:B6:75
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 3
如果所示,这里我们就获取到安卓APP签名信息,包括:MD5、SHA1、SHA256
MD5: 24:D2:CA:F6:3A:1A:13:ED:8D:B6:8E:19:82:E1:F3:F5
SHA1: AA:16:27:91:83:39:EC:AA:E9:22:9E:6C:9C:3E:91:C5:59:1E:8F:12
SHA256: D6:00:56:1E:3B:89:AC:23:5E:B3:0B:36:8E:A5:2F:9D:47:49:04:05:0C:18:71:A3:5E:CA:A2:09:0A:B5:B6:75
根据不同的三方平台要求,我们可能需要去掉间隔“:”冒号
MD5: 24D2CAF63A1A13ED8DB68E1982E1F3F5
SHA1: AA1627918339ECAAE9229E6C9C3E91C5591E8F12
SHA256: D600561E3B89AC235EB30B368EA52F9D474904050C1871A35ECAA2090AB5B675
这样我们就完成了本地电脑cmd命令获取安卓证书APP签名信息的全套操作。
编辑:小明,如若转载,请注明出处:https://www.yimenapp.com/kb-yimen/1800/
部分内容来自网络投稿,如有侵权联系立删