-tsa or -tsacert timestamp for applet jar self-signed

前端 未结 4 2088
生来不讨喜
生来不讨喜 2020-12-05 02:08

When I was trying to self-sign in the jar like below.

jarsigner -keystore my keystore myjar.jar myalias

It gives warning like:

4条回答
  •  我在风中等你
    2020-12-05 02:32

    I was facing the same problem. Without the timestamp the jar would not get signed.

    When you add -tsa http://timestamp.digicert.com, it would not give any warning or error but still the jar would not be signed.

    But then I added the following part and it worked for me.

    -tsacert alias
    

    So, basically my final command was

    jarsigner -verbose -tsa http://timestamp.digicert.com -tsacert alias  -sigalg SHA256withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name
    

    Remember the alias_name in the command and the one in keystore should be the same.

提交回复
热议问题