简体   繁体   English

科尔多瓦生成签名的apk

[英]cordova generate signed apk

When I try to sign the unsign apk with the code: 当我尝试使用以下代码对取消签名的APK进行签名时:

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name

I getting the error: 我收到错误:

No -tsa or -tsacert is provided and this jar is not timestamped. 没有提供-tsa或-tsacert,并且这个jar没有时间戳记。 Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2044-03-11) or after any future revocation date. 如果没有时间戳,则用户可能无法在签署者证书的到期日期(2044-03-11)或任何将来的撤销日期之后验证此jar。

Why it is happen? 为什么会发生?

thanks 谢谢

jarsigner can generate signatures that include a timestamp, thus enabling systems/deployer (including Java Plug-in) to check whether the JAR file was signed while the signing certificate was still valid. jarsigner可以生成包括时间戳的签名,从而使系统/部署程序(包括Java插件)可以在签名证书仍然有效的同时检查JAR文件是否已签名。 In addition, APIs were added in J2SE 5.0 to allow applications to obtain the timestamp information. 另外,在J2SE 5.0中添加了API,以允许应用程序获取时间戳信息。

refer to this 参考这个

Use this for signing 使用它进行签名

jarsigner -tsa http://timestamp.digicert.com -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM