获得证书的详细信息,从APK详细信息、证书、APK

2023-09-13 00:07:01 作者:如初

我如何去获得的APK与签署证书的详细信息。我有一大堆不同的证书签名的apk的,我试图将它们分组根据其证书。

How do i go about getting the details of the certificate an apk was signed with. I have a bunch of apks signed with different certificate and I am trying to group them based on their certificate.

我可以使用的jarsigner拿到证书到期的详细信息,并完成我的任务,但我很好奇,如果我能得到任何更多详情或提取公钥(我相信它储存在META-INF / cert.RSA,但它不是可读)

I can get the certificate expiry details using the jarsigner and complete my task but I was curious if I can get any more details or extract the public key ( I believe it stored in META-INF/cert.RSA but its not readable )

推荐答案

请尝试以下操作:

openssl pkcs7 -inform DER -in CERT.RSA -noout -print_certs -text