PKI Certificate Tutorials - Herong's Tutorial Examples - v1.12, by Herong Yang
"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
Introduction of PKI (Public Key Infrastructure)
Introduction of PKI Certificate
OpenSSL - Cryptography Toolkit
"openssl ca" - CA (Certificate Authority) Tool
►Java "keytool" Commands and KeyStore Files
►"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"
PKCS12 Certificate Bundle File