Summary - Migrating "OpenSSL" Keys to "keystore"

This section describes high level steps on how to migrate a private key generated by 'OpenSSL' into a JKS (Java KeyStore) file. The key step is to merge the private key with its self-signed certificate into a PKCS#12 file.

As a summary, I want offer some notes here about migrating private keys from "OpenSSL" files to "keytool" keystore files:

There is no easy way to just migrate the private keys from "OpenSSL" key files directly to "keytool" keystore files.

"openssl pkcs12 -export" command should be used to combine the private key file and the self-signed certificate file in a PKCS#12 file.

"keytool" can use the PKCS#12 file directly with the "-storetype pkcs12" open.

"keytool -importkeystore" command should be used to convert the PKCS#12 file into a JKS (Java KeyStore) file.

Table of Contents

 About This Book

 Cryptography Terminology

 Cryptography Basic Concepts

 Introduction to AES (Advanced Encryption Standard)

 Introduction to DES Algorithm

 DES Algorithm - Illustrated with Java Programs

 DES Algorithm Java Implementation

 DES Algorithm - Java Implementation in JDK JCE

 DES Encryption Operation Modes

 DES in Stream Cipher Modes

 PHP Implementation of DES - mcrypt

 Blowfish - 8-Byte Block Cipher

 Secret Key Generation and Management

 Cipher - Secret Key Encryption and Decryption

 Introduction of RSA Algorithm

 RSA Implementation using java.math.BigInteger Class

 Introduction of DSA (Digital Signature Algorithm)

 Java Default Implementation of DSA

 Private key and Public Key Pair Generation

 PKCS#8/X.509 Private/Public Encoding Standards

 Cipher - Public Key Encryption and Decryption

 MD5 Mesasge Digest Algorithm

 SHA1 Mesasge Digest Algorithm

 OpenSSL Introduction and Installation

 OpenSSL Generating and Managing RSA Keys

 OpenSSL Managing Certificates

 OpenSSL Generating and Signing CSR

 OpenSSL Validating Certificate Path

 "keytool" and "keystore" from JDK

 "OpenSSL" Signing CSR Generated by "keytool"

 Migrating Keys from "keystore" to "OpenSSL" Key Files

 Certificate X.509 Standard and DER/PEM Formats

Migrating Keys from "OpenSSL" Key Files to "keystore"

 What Is PKCS#8?

 What Is PKCS#12?

 "openssl genrsa" Generating Private Key

 "openssl pkcs8" Converting Keys to PKCS#8 Format

 "openssl pkcs12" Merging Key with Certificate

 "keytool -list" Verifying PKCS#12 Files

 "keytool -importkeystore" Importing PKCS#12 Files

Summary - Migrating "OpenSSL" Keys to "keystore"

 Summary - Migrating "keystore" Keys to "OpenSSL"

 Using Certificates in IE

 Using Certificates in Google Chrome

 Using Certificates in Firefox

 Archived Tutorials

 References

 Full Version in PDF/EPUB