生成 keystore

1. 生成 keystore

keytool -genkeypair -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

input password: xxxx123

2. 查看 SHA-1

keytool -list -v -keystore ./my-upload-key.keystore -alias my-key-alias -storepass xxxx123 -keypass xxxx123
keytool -exportcert -list -v -keystore ./my-upload-key.keystore -alias my-key-alias -storepass xxxx123 -keypass xxxx123

firebase or facebook 需要 keystore. 注意, 如果密码错误, 以下语句并不会出错, 但是打印结果是错误的

keytool -exportcert -alias my-key-alias -keystore ./my-upload-key.keystore -storepass xxxx123 -keypass xxxx123 | openssl sha1 -binary | openssl base64

你可能感兴趣的:(linux,React,linux,react,native)