Download the JDK
Search the Tutorials
Hide the TOC
Trail: Security Features in Java SE
Lesson: Exchanging Files
Exchanging Files
Steps for the Contract Sender
Create a JAR File Containing the Contract
Generate Keys
Sign the JAR File
Export the Public Key Certificate
Steps for the Contract Receiver
Import the Certificate as a Trusted Certificate
Verify the JAR File Signature
Home Page > Security Features in Java SE > Exchanging Files
« Previous • Trail • Next »
Steps for the Contract Receiver

> Now acting as Ruth, who receives the signed JAR file and the certificate file from Stan, perform the following steps, as shown in the figure.

> 1. Import the Certificate as a Trusted Certificate, using the `keytool` `-import` command.

> 2. Verify the JAR File Signature, using the `jarsigner` tool.

> This figure has been reduced to fit on the page.
> Click the image to view it at its natural size.

« Previous • Trail • Next »
Previous page: Export the Public Key Certificate
Next page: Import the Certificate as a Trusted Certificate