I have a cordova app and am using cmd to build it and need to sign its release apk.
First I did it without the -tsa option so on running the command it asked the pwd and then was signed with the warning :
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1
-keystore my.keystore "apk\release\app-release-unsigned.apk" myaliasofkeystore
No -tsa or -tsacert is providedand this jar is not timestamped.
So i added the option -tsa timestamp.digicert.com :
jarsigner -tsa timestamp.digicert.com -verbose -sigalg SHA1withRSA -digestalg SHA1
-keystore my.keystore "apk\release\app-release-unsigned.apk" myaliasofkeystore
Now, on running this command it asks for the password but after that yields this error :
jarsigner error: java.lang.NullPointerException