Jar Signing Stumped
843802Jul 9 2004 — edited Jul 13 2004I'm trying to write my first Java Web Start application and I'm having an issue:
Environment:
J2SDK 1.4.2_03
I have successfully signed my jars
1. I would like to start the application WITHOUT the following in the JNLP
<security>
<all-permissions>
</all-permissions>
</security>
2. If I run the application (eventhough my jar files are signed) I see "Java Application Window" on the bottom of anything that pops up.
3. If I do include "all-permissions" then the application run without "Java Application Window" but JWS pops up a dialog that tells the user that it is recommended that they do NOT install the application (that stinks)
4. I have signed up with Thawte and successfully gotten a Certifcate from them in "PKCS #7 SIGNED DATA" format. I copied the "PKCS #7 SIGNED DATA" section into a text file (tried both with and without the BEGIN and END sections). I cannot import the certificate into my keystore because I keep getting a Parsing Exception... -96 Exception. I also get the same exception when I run the following command:
C:\>keytool -printcert -v -file cert.cer
sun.security.pkcs.ParsingException: toDerInputStream rejects tag type -96
....
Caused by: java.io.IOException: toDerInputStream rejects tag type -96
at sun.security.util.DerValue.toDerInputStream(DerValue.java:796)
at sun.security.pkcs.PKCS7.parseSignedData(PKCS7.java:217)
So.... here is the big two questions:
1. How do I get rid of "Java Application Window" when running WITHOUT "all-permissions"?
2. How do I solve the problem with the "toDerInputStream rejects tag type -96" exception?