Keystore primer

The concept of a KeyStore is relatively simple. It is essentially a database file, or data repository file, that stores public key certificates and private keys. The Keystore will be stored in the /jre/lib/security/cacerts folder. As you will see in the next section, this database is managed by Java's java.security.KeyStore class methods.

KeyStore features include:

  • Contains one of the following entry types:
    • Private keys
    • Public key certificates
  • Unique alias string names for every entry
  • Password protection for each key

Get Java 9: Building Robust Modular Applications 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.