Getting certificate details from an apk

前端 未结 5 1954
名媛妹妹
名媛妹妹 2020-11-29 00:56

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

相关标签:
5条回答
  • 2020-11-29 01:14

    Based on the existing answers, here's the command line for on-the-fly usage of openssl (unzip & pipe the cert instead of defining an -infile option):

    unzip -p App.apk META-INF/CERT.RSA |openssl pkcs7 -inform DER -noout -print_certs -text
    
    0 讨论(0)
  • 2020-11-29 01:25

    The easiest of all:

    keytool -printcert -jarfile file.apk
    

    This also works for Android App Bundles (.aab)

    0 讨论(0)
  • 2020-11-29 01:25

    without unpacking you can use ApkSigner from Android SDK and following:

    apksigner.jar verify --print-certs myApplication.apk
    
    0 讨论(0)
  • 2020-11-29 01:27

    Try the following:

    openssl pkcs7 -inform DER -in CERT.RSA -noout -print_certs -text
    
    0 讨论(0)
  • 2020-11-29 01:32

    unzip -p Name-of-apk.apk META-INF/CERT.RSA | keytool -printcert is what I used .

    It produces information such as the owner , issuer , serial number , valid through, certificate finger prints , signature algorithms and version .

    0 讨论(0)
提交回复
热议问题