Skip to content

Instantly share code, notes, and snippets.

@wxingheng
Created May 15, 2020 07:02
Show Gist options
  • Save wxingheng/7191a1df4c736efdf1693063c5c9dd1a to your computer and use it in GitHub Desktop.
Save wxingheng/7191a1df4c736efdf1693063c5c9dd1a to your computer and use it in GitHub Desktop.
sha1 安卓获取签名
debug版本:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey
releasse版本:
keytool -list -v -keystore 你打包时候的key store path
如何获取 store path
1,找到弄的java目录,
/usr/libexec/java_home -v
cd bin
2,生成 .keystore 文件
keytool -genkey -alias test -keyalg RSA -keysize 2048 -validity 36500 -keystore test.keystore
3,pwd 获取生成 test.keystore 文件的path
**获取sha1**
keytool -list -v -keystore test.keystore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment