Java Cryptography by Knudsen Jonathan

Java Cryptography by Knudsen Jonathan

Author:Knudsen, Jonathan [Jonathan Knudsen]
Language: eng
Format: epub, mobi
Tags: COMPUTERS / Programming Languages / Java
ISBN: 9781449390617
Publisher: O'Reilly Media
Published: 2010-05-04T16:00:00+00:00


Bundle the Applet

HotJava recognizes JAR files, which are created using the jar tool. Our applet contains only one file, so we can create the JAR using the following command:

jar -cf Renegade.jar Renegade.class

This takes Renegade.class and puts it in a new JAR called Renegade.jar.

Sign the Applet

We’ll use the javakey tool to sign the JAR, as described in Appendix D. The directive file should look like this:

signer=Marian cert=1 chain=0 signature.file=MARIANSG out.file=hjRenegade.jar

Save this in a file called MarianSign.directive. Then you can sign the JAR using the following command:

javakey -gs MarianSign.directive Renegade.jar

The JAR is signed with Marian’s private key, and the resulting signed JAR is hjRenegade.jar.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.