sh 如何找出用于签署应用程序的密钥库? - 来源:http://stackoverflow.com/questions/11331469/how-do-i-find-out-which-keys

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 如何找出用于签署应用程序的密钥库? - 来源:http://stackoverflow.com/questions/11331469/how-do-i-find-out-which-keys相关的知识,希望对你有一定的参考价值。

# First, unzip the APK and extract the file /META-INF/ANDROID_.RSA (this file may also be CERT.RSA, but there should only be one .RSA file).
# Then issue this command:

keytool -printcert -file ANDROID_.RSA

# You will get certificate fingerprints like this:
# MD5:  B3:4F:BE:07:AA:78:24:DC:CA:92:36:FF:AE:8C:17:DB
# SHA1: 16:59:E7:E3:0C:AA:7A:0D:F2:0D:05:20:12:A8:85:0B:32:C5:4F:68
# Signature algorithm name: SHA1withRSA

# Then use the keytool again to print out all the aliases of your signing keystore:

keytool -list -keystore /path/to/file.keystore

# You will get a list of aliases and their certificate fingerprint:
# android_key, Jan 23, 2010, PrivateKeyEntry,
# Certificate fingerprint (MD5): B3:4F:BE:07:AA:78:24:DC:CA:92:36:FF:AE:8C:17:DB

# Voila! we can now determined the apk has been signed with this keystore, and with the alias 'android_key'.
# Keytool is part of Java, so make sure your PATH has Java installation dir in it.

以上是关于sh 如何找出用于签署应用程序的密钥库? - 来源:http://stackoverflow.com/questions/11331469/how-do-i-find-out-which-keys的主要内容,如果未能解决你的问题,请参考以下文章

未找到用于签署配置“发布”的密钥库。-- 反应原生

sh 如何使用GPG密钥签署自定义RPM包

我想创建一个密钥库来签署应用程序,但每次我得到这个错误时说啥?

Cordova facebook 插件无效的密钥哈希

使用 SymmetricSecurityKey 签署 jwt 时如何指定孩子?

密钥库文件未设置用于签署配置发布颤动(尝试发布模式时)