• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error jarsigner

 
Fernando Skackauskas
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I created a key to java program with the keytool command:

keytool –genkey –alias chave –validity 10000 –keypass 000005 –keystore “c:\Documents\chave\chave” –storepass 000005;

Then, I sign with the command:

jarsigner –keypass 000005 –storepass 000005 –keystore “c:\Documents\chave\chave” “c:\Projeto\Autenticacao\Autenticacao\dist\Autenticacao.jar” chave;

But is occurring the following error:

jarsigner error: java.lang.RuntimeException: keystone load: keystore was tampared with, or password was incorrect.

I can not understand what is wrong.

Thanks,

Fernando.
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see a "-genkey" option in keytool! What am I missing?


P.S. Those trailing ';' could cause you a problem.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!