美文网首页Android知识Android开发
Android 使用 keytool 查看签名方法

Android 使用 keytool 查看签名方法

作者: 古月XYZ | 来源:发表于2017-02-25 10:00 被阅读344次

    查询签名信息
    参考:The Most Common Java Keytool Keystore Commands

    # Java Keytool Commands for Checking
    # If you need to check the information within a certificate, or Java 
    # keystore, use these commands.
    # Check a stand-alone certificate
    keytool -printcert -v -file mydomain.crt
    # Check which certificates are in a Java keystore
    keytool -list -v -keystore keystore.jks
    # Check a particular keystore entry using an alias
    keytool -list -v -keystore keystore.jks -alias mydomain
    

    实际操作分两种情况:

    • 对于 apk 包,先用 unzip解压,然后在META-INF/下找到一个***.RSA,然后使用命令:
    keytool -printcert -v -file ***.RSA
    
    • 对于本地的密钥库文件****.keystore,则可直接使用:
    keytool -list -v -keystore ****.keystore -alias mydomain -storepass mypassword
    

    相关文章

      网友评论

        本文标题:Android 使用 keytool 查看签名方法

        本文链接:https://www.haomeiwen.com/subject/qzwwwttx.html