应用宝app升级提示需要认领包,好吧,那就操作起来
一步步下来 需要给一个apk签名
当时建立证书是这样的
keytool -genkey -alias xxxx -keyalg RSA -keysize 2048 -validity 36500 -keystore xxxx.keystore
于是按照教程命令如下
jarsigner -verbose -keystore xxxx.keystore -signedjar tap_signed.apk tap_unsign.apk xxxx.keystore
输入密码,确认正确后 报错:
jarsigner: Certificate chain not found for: huberbuycloud.keystore. huberbuycloud.keystore must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
找了半天教程也不知道这到底为啥
于是
keytool -list -v -keystore xxxx.keystore 看下证书详情,发现Alias name那行= xxxx(没有后缀!)
好吧
jarsigner -verbose -keystore xxxx.keystore -signedjar tap_signed.apk tap_unsign.apk xxxx
成功!