# Help me please.

alexander.menkov@usa.net
Thu, 04 Jun 1998 19:19:23

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Scott Vickroy: "CSR to CER tool?"
- Previous message: Jan Luehe: "Re: how to save and restore key pairs generated by keyPairGenerator?"

    From: alexander.menkov@usa.net

    Date: Thu, 04 Jun 1998 19:19:23

    To: java-security@web2.javasoft.com

    Subject: Help me please.

Dear Sir.

Could you help me please!!!

I have a problem with Signed Applet Example which tries to write a file named "tmpfoo". If I download Duke.x509 certificate, signedWriteFile.jar and signedWriteFile.html then it works great. But if I download writeFile.java, compile it, generate JAR file, sign it and run then I still have SecurityException.

I use the next script:

javakey -r "Duke"
javakey -cs "Duke" true
javakey -gk "Duke" DSA 512 Duke_pub Duke_priv
javakey -gc cert_directive_Duke
javac writeFile.java
jar cf signedWriteFile.jar writeFile.class writeFile.html
javakey -gs sign_directive_Duke signedWriteFile.jar
move signedWriteFile.jar.sig signedWriteFile.jar
javakey -r "Duke"
javakey -c "Duke" true
javakey -ic "Duke" Duke.x509
appletviewer writeFile.html

Files cert_directive_Duke, sign_directive_Duke and writeFile.html I downloaded and didn't change.

While script is running I don't receive any error messages.

after "javakey -ld" command I receive:
Duke[identydb.obj][trusted]
public key initialized
certificates:
certificate 1 for : CN=Duke, OU=JavaSoft, O=Sun MicroSystems, C=US
from : CN=Duke, OU=JavaSoft, O=Sun MicroSystems, C=US

after "jar tvf signedWriteFile.jar" command with jar-file which I created I receive:
292 ... META-INF/MANIFEST.MF
293 ... META-INF\DUKESIG.SF
1023 ... META-INF\DUKESIG.DSA
1777 ... writeFile.class
748 ... writeFile.html

but after "jar tvf signedWriteFile.jar" command with jar-file which I downloaded I receive:
292 ... META-INF/MANIFEST.MF
293 ... META-INF/DUKESIG.SF
1028 ... META-INF/DUKESIG.DSA
1777 ... writeFile.class
748 ... writeFile.html

You can see that I have "\" instead of "/". If I load signedWriteFile.jar which I created using JAR viewer then it think that META-INF\DUKESIG.SF or META-INF\DUKESIG.DSA are the one name. It doesn't understand that it is DUKESIG.SF name in META-INF package because I have "\" instead of "/". The first string JAR-viewer understand: Name - MANIFEST.MF, Package META-INF.
How I can fix this problem? The entries DUKESIG.SF and DUKESIG.DSA adds "javakey" utility. So it works wrong. Right?

I use Windows95 and JDK1.1.4.

I am waiting your answer. Thank you!!!

Best Regards,
Alexander.

____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1

- Next message: Scott Vickroy: "CSR to CER tool?"
- Previous message: Jan Luehe: "Re: how to save and restore key pairs generated by keyPairGenerator?"