"keytool" - Key and Certificate Management Tool

This section provides a quick introduction of 'keytool' - a command line tool to manage private keys and public certificates in 'keystore' database file.

"keytool" is command line tool included in JDK (Java Development Kit) to manage keys and certificates inside Java KeyStore files.

Note that the JRE (Java Runtime Environment) does not support the "keytool" command. You need to install the JDK package to use "keytool". See "JDK Tutorials - Herong's Tutorial Examples" at herongyang.com/JDK/ for more information on JDK.

"keytool" offers a number functions through the following command options:

You can run the "keytool -help" command to more information.

Table of Contents

 About This Book

 Introduction of PKI (Public Key Infrastructure)

 Introduction of PKI Certificate

 PKI Certificate File Formats

 OpenSSL - Cryptography Toolkit

 "openssl ca" - CA (Certificate Authority) Tool

Java "keytool" Commands and KeyStore Files

 What Is Java KeyStore File?

"keytool" - Key and Certificate Management Tool

 "keytool -genkeypair" - Generate Key with Self-Signed Certificate

 "keytool -export/import" - Export and Import Certificates

 "keytool -keyclone" - Clone Self-Signed Certificate with New Identity

 "keytool -certreq" - Generate CSR (Certificate Signing Request)

 "keytool -gencert" - Sign CSR with CA certificate

 "keytool -gencert -ext" - Sign CSR with X.509 Extensions

 Export Key Pair using "keytool -importkeystore"

 PKI Certificate Store

 PKCS12 Certificate Bundle File

 PKCS7 Certificate Chain File

 PKI Certificate Related Terminology

 References

 Full Version in PDF/EPUB