欢迎使用CSDN-markdown编辑器

把 .pk8 .pem 格式的签名生成keystore格式的:

android默认有四个签名:
testkey – a generic key for packages that do not otherwise specify a key.
platform – a test key for packages that are part of the core platform.
shared – a test key for things that are shared in the home/contacts process.
media – a test key for packages that are part of the media/download system.

1.把pkcs8格式的私钥转换为pkcs12格式:
openssl pkcs8 -inform DER -nocrypt -in platform.pk8 -out platform.pem

2.生成pkcs12格式的密钥文件:
openssl pkcs12 -export -in  platform.x509.pem -out platform.pk12 -inkey  platform.pem -password pass:android -name androiddebugkey

3.生成keystore:
keytool -importkeystore -deststorepass android -destkeystore ./platform.keystore -srckeystore ./platform.pk12 -srcstoretype PKCS12 -srcstorepass android

另外:生成的keystore的alias name :androiddebugkey;pass 为:android

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值