uniapp 打包app,生成证书

百度好多方法都说是

keytool -genkey -alias 你的项目的证书别名-keyalg RSA -keysize 2048 -validity 36500 -keystore 你的证书名称.jks(废弃)

然后,喜滋滋的去打包

很好,提示xx是无效的keystore文件

换一种方式:

keytool -genkey -alias 你的项目的证书别名.keystore -keyalg RSA -sigalg SHA1WithRSA -validity 20000 -keysize 1024 -keystore 你的证书名称.keystore -v

填完信息后

keytool -importkeystore -srckeystore ./你的证书名称.keystore -destkeystore ./你的证书名称.keystore -deststoretype JKS

查看证书信息:

keytool -list -v -keystore 你的证书名称.keystore 

到此,打包正常!

..
原文地址:https://www.cnblogs.com/shoolnight/p/15211407.html