Forums Register Login

Jar signer

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
You need to use the keytool to create a keystore. Example:

Answer the questions ask.

Then, to sign your jar it's:
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 5714 times.
Similar Threads
Jarsigner error: NULL Pointer exception
Problem signing jar file
Signing a jar
Signing a jar
Problem in Signing the Jar Files
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 01:04:48.