security - jarsigner error: java.lang.RuntimeException: keystore load: Keystore was tampered with, or password was incorrect -
i trying sign .wgt file(widget jar file) using jarsigner of java 6. when try sign, gives me following error, after asking enter passphrase keystore.
jarsigner error: java.lang.runtimeexception: keystore load: keystore tampered with, or password incorrect i tried newly created key store, sure entering correct password. there else have been gone wrong? in advance!
if you're quoting password, try removing quotes. experienced error when using jarsigner in 1.7.0_25-b17 jdk on windows 7. typically use earlier versions of jarsigner on solaris , linux , have quoted password using single quotes because contains characters interpreted shell.
i haven't verified, i'm guessing shell interpreter on *nix trims quotes before passing parameters jarsigner, windows command prompt doesn't.
for example, instead of
jarsigner -keystore /my/cert/file -storepass 'password' /my/jar/file my_alias
try
jarsigner -keystore /my/cert/file -storepass password /my/jar/file my_alias
Comments
Post a Comment