为 APK 触发时,`keytool` 命令中缺少 MD5 [英] MD5 missing from `keytool` command when fired for APK
问题描述
通常我使用以下命令获取 Android 包 (APK) 证书信息:
Usually I fetch Android Package (APK) Certificate information using the below command :
keytool -printcert -jarfile <APK>
但最近我注意到输出中缺少 MD5 列.我只得到 SHA1
和 SHA256
,如下面的输出所示:
but recently I have noticed that MD5 column is missing from the output.
I just get SHA1
and SHA256
as seen in output below :
Getting Certification Info.
---------------------
Owner: CN=XYZ
Issuer: CN=XYZ
Serial number: 4e98b743
Valid from: Wed Mar 13 16:46:46 IST 2019 until: Sun Mar 06 16:46:46
IST 2044
Certificate fingerprints:
**SHA1**: A5:32:37:D5:5B:31:6B:B2:09:48:BA:B1:EA:08:8C:RE:CB:23:24:B6
**SHA256**: 65:89:43:AD:54:65:12:D5:B3:C5:CA:BA:F4:7E:79:02:B5:AE:C9:C5:E8:06:00:1E:C2:10:A5:2E:CE:BF:A3:58
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 3
<--output truncated-->
我怎样才能获得 MD5 呢?
How can I get MD5 as well ?
更新:我使用的是 Ubuntu 18.04.2 LTS
Update: I am using Ubuntu 18.04.2 LTS
Java:openjdk 10.0.2 2018-07-17
Java : openjdk 10.0.2 2018-07-17
更新:keytool's
-v 选项也没有帮助我在输出中获得 MD5.
Update :
keytool's
-v option also not helping me get MD5 in output.
推荐答案
从右侧选择 Gradle 项目然后
应用程序->任务->android->signingReport
单击后双击signingReport,然后您可以在运行视图中看到MD5.
Select Gradle project from Right side then
app->Tasks->android->signingReport
Double Click on signingReport after click on then you can see MD5 into Run View.
如果您签署密钥库文件,那么您应该在终端中运行以下命令.
keytool -list -v -keystore C:\Users\MG\Desktop\test.jks -alias test
If you signing keystore file then you should run below command into terminal.
keytool -list -v -keystore C:\Users\MG\Desktop\test.jks -alias test
这篇关于为 APK 触发时,`keytool` 命令中缺少 MD5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!