Listing 1: Crearea unui applet semnat

           ambrosia[1] -> javakey -cs OpenHorizon true
           created identity
           [Signer]OpenHorizon[uninitialized][trusted]
ambrosia[2] -> javakey -gk OpenHorizon DSA 1024 oh.pub oh.priv
           Generated DSA keys for OpenHorizon (strength: 1024)
           Saved public key to oh.pub
           Saved private key to oh.priv
ambrosia[3] -> cat oh.certDir
           issuer.name=OpenHorizon
           issuer.cert=1
           subject.name=OpenHorizon
           subject.real.name=OpenHorizon,Inc.
           subject.org.unit=Software Development
           subject.org=OpenHorizon
           subject.country=US
           start.date=10 April 1997
           end.date=10 April 1998
           serial.number=1100
           out.file=oh.cert
           ambrosia[4] -> javakey -gc oh.certDir
           Generated certificate from directive file oh.certDir
ambrosia[5] -> jar cf AmbrosiaSamples.jar *.class
ambrosia[6] -> cat oh.signDir
           signer=OpenHorizon
           cert=1
           chain=0
           signature.file=OHSig
ambrosia[7] -> javakey -gs oh.signDir AmbrosiaSamples.jar
           Adding entry: META-INF/MANIFEST.MF
           Creating entry: META-INF/OHSIG.SF
           Creating entry: META-INF/OHSIG.DSA
           Adding entry: ohsub.class
           Adding entry: ohpub.class
           Signed JAR file AmbrosiaSamples.jar using directive file oh.signDir
ambrosia[8] -> mv AmbrosiaSamples.jar.sig
           AmbrosiaSamples.jar

Securitatea �n noul JDK 1.1

BYTE Rom�nia - februarie 1998


(C) Copyright Computer Press Agora