Previous | Next | Trail Map | Security in JDK 1.2  | Signing Code and Granting It Permissions

Export the Public Key Certificate

You now have a signed JAR file sCount.jar. The runtime system of the code receiver (whom we're calling Ray) will need to authenticate the signature when the Count application in the signed JAR file tries to read a file and a policy file grants that permission to this signed code.

In order for the runtime system to authenticate the signature, Ray's keystore needs to have the public key corresponding to the private key used to generate the signature. You supply this to him by sending him a copy of the certificate authenticating the public key. Copy that certificate from the keystore susanstore to a file named SusanJones.cer via the following:

keytool -export -keystore susanstore -alias signFiles -file SusanJones.cer
You will be prompted for the store password ("ab987c", without the quotes).

Now you can go on to the Steps for the Code Receiver.


Previous | Next | Trail Map | Security in JDK 1.2  | Signing Code and Granting It Permissions