Files
tra-app/certificate/android/获取备案的MD5值.txt
2025-07-24 20:30:20 +08:00

23 lines
727 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
为什么没有 MD5
Java 8+ 默认禁用了 MD5(出于安全原因),keytool 默认只显示 SHA-1 和 SHA-256。
但 证书本身仍然可以计算 MD5,只是 keytool 默认不显示。
如何获取该 Keystore 的 MD5 指纹?
方法 1:使用 openssl 计算证书的 MD5
导出证书(.cer 或 .pem 格式):
bash
keytool -exportcert -alias ai_jlyh_app -keystore ai_jlyh_app.keystore -file cert.cer
(输入 keystore 密码)
用 openssl 计算 MD5 指纹:
bash
openssl x509 -inform der -in cert.cer -noout -fingerprint -md5
输出示例:
text
MD5 Fingerprint=D5:DC:64:CD:DD:A5:25:FE:26:B8:EF:24:8A:2B:B3:89
去掉冒号,转为小写,就是备案所需的 d5dc64cddda525fe26b8ef248a2bb389。