您当前的位置: 首页 >  android

Android apk签名

发布时间:2020-07-23 18:15:14 ,浏览量:0

set in_pk8="D:\MTK\key\security\platform.pk8"
set in_x509_pem="D:\MTK\key\security\platform.x509.pem"

set out_name=out.keystore.platform
set out_alias="is05"
set storePassword=12345678
set keyPassword=12345678

set tmp_file1=platform.p12
set tmp_file2=platform.pem

set openssl="C:\Program Files\OpenSSL-Win64\bin\openssl.exe"
set keytool="C:\Program Files\Java\jre1.8.0_251\bin\keytool.exe"

:: using open ssl will pk8 decrypted pem file, then generate a file testkey.pem
 %openssl% pkcs8 -inform DER -nocrypt -in %in_pk8% -out %tmp_file2%

 :: the two files into platform.p12 pem file,
 :: testkey and set an alias and keypass Password: 12345678 (alias and password can be customized) will generate new platform.p12
%openssl% pkcs12 -export -in %in_x509_pem% -inkey %tmp_file2% -out %tmp_file1% -password pass:%keyPassword% -name %out_alias%

 :: keytool to use previously generated signatures testkey.jks
关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    106593博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0481s