I know that this is unsafe, but is there any easy way to pass passphrase to the jarsigner.exe:
jrsigner.exe -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ...
Enter Passphrase for keystore:
I am running it in batch file.
Description. The jarsigner tool has two purposes: To sign Java Archive (JAR) files. To verify the signatures and integrity of signed JAR files.
Well, why do you not simply use the corresponding parameters?
jarsigner -keystore my-keystore -storetype jceks -storepass "test" -keypass "test" my-archive.jar xander
Broken down into separate lines for better readability (but you have to put all parameters on one line, of course):
jarsigner -keystore my-keystore # keystore path name -storetype jceks # keystore type (whatever format yours is in) -storepass "test" # keystore password -keypass "test" # private key password my-archive.jar # JAR path name xander # key name (alias)
Update: Please note with regard to passwords that
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With