Android 怎么生成App的keystore文件
1、首先安卓JDK,这个不多说
2、添加环境变量:C:\Program Files\Java\jdk-17.0.1\bin
目录下有keytool.exe,使用keytool命令生成
3、keytool -genkey -alias test -keyalg RSA -validity 10000 -keystore test.keystore
输入秘钥库口令:
再次输入新口令:
您的名字和姓氏是什么:
您的组织单位名称是什么:
您所在的城市或区域名称是什么:
您所在的省/市/自治区名称是什么:
该单位的双字母国家/地区代码是什么:
CN=ou, OU=oh, O=oh, L=js, ST=js, C=cn是否正确?
.
.
.
查看当前目录下会生成test.keystore文件
生成密钥散列
当前目录下执行命令
keytool -exportcert -alias test -keystore test.keystore | openssl sha1 -binary | openssl base64
会报 'openssl' 不是内部或外部命令,也不是可运行的程序
[windows使用openssl](https://ormcc.com/article/41 "windows使用openssl")
这会生成一个包含 28 个字符的字符串
[em_63]
3年前 · 上海 上海