• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Jar signer

 
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.
 
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.
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic