• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar signer

 
Eoin Mac Aoidh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi - Jarsigner newbie here;

Im trying to sign a Jar file, on.jar, using the Jarsigner provided by j2sdk1.4.2_04.
...so at the prompt, I type> JarSigner on.jar Eoin
Then it prompts me for the passphrase for the keystore.
I have no idea what the keystore is, or what its passphrase is for that matter! Is there a default passphrase or something?
-Actually on a broader scale - am I going about signing it correctly?

Any help greatly appreciated,
Thanks,
Eoin.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the keytool to create a keystore. Example:

Answer the questions ask.

Then, to sign your jar it's:
 
Eoin Mac Aoidh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Carl, thanks for your help, Im nearly there - there seems to be one problem though.
First I create the keystore:


I just copied your example "jaxb.keys" as Im not sure what this is supposed to be, but it worked fine. Then it prompted me for some indormation, which I filled in.
For the second part then, signing the Jar, the args I gave were:


It gives the following error:
jarsigner: Certificate chain not found for: omframe.html. omframe.html must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.


Is the problem with my url "omframe.htm"? -Thats where I want to have the jar displayed.

Sorry to bother you again.
Thanks,

Eoin.
 
Eoin Mac Aoidh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok - Well I dont really know what the problem was - but going by this article;
http://java.sun.com/docs/books/tutorial/deployment/jar/signing.html
I manage to solve the problem.
Thanks again.

E.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic