Using the keytool Utility

The JDK provides a command-line utility named keytool for manipulation of the keystore key database. This tool is run from the command line and accepts a number of parameters that allow it to be used to create new certificates, to import certificates, to delete certificates, or to generate certificate-signing requests (CSRs) for Certificate Authorities.

The following sections detail some of the more common actions that can be executed with this command and the parameters used to execute the actions. If all required parameters have not been passed in the command, then the keytool command will prompt for additional parameters. For the commands shown below, the keytool command will prompt the user for one or more passwords. ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.