Skip to content

Instantly share code, notes, and snippets.

@icyleaf
Last active February 8, 2021 13:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icyleaf/1c90cbb2f7665e31c198b5423a21f750 to your computer and use it in GitHub Desktop.
Save icyleaf/1c90cbb2f7665e31c198b5423a21f750 to your computer and use it in GitHub Desktop.
获取 apk 文件证书签名的三种方式
# 获取 apk 的证书
keytool -list -printcert -jarfile app.apk
# 获取 apk 解包后 CERT.{RSA|DSA} 的证书
keytool -printcert -file app/META-INF/CERT.{RSA|DSA}
# 获取 keystore 的证书
keytool -list -keystore app.keystore -storepass {password}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment