在开发安卓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[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
serial 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、
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/
部分内容来自网络投稿,如有侵权联系立删