Signing Code and Granting It Permissions [Tools] |
The steps you take as the code signer are:
- Download and Try the Sample Application.
- Create a JAR File Containing the Class File, using the jar tool.
- Generate Keys (if they don't already exist), using the keytool
-genkey
command.Optional Step Generate a Certificate Signing Request (CSR) for the Public Key Certificate, and import the response from the Certification Authority (CA). For simplicity (and since we are only pretending to be Susan Jones), we omit this step. See API and Tools Use for Secure Code and File Exchanges for more information.
- Sign the JAR File, using the jarsigner tool and the private key generated in Step 4.
- Export the Public Key Certificate, using the keytool
-export
command. Then supply the signed JAR file and the certificate to the receiver Ray.
Signing Code and Granting It Permissions [Tools] |