Search code examples
keystoreencryption-asymmetrictruststore

Truststore and Keystore Definitions


What's the difference between a keystore and a truststore?


Solution

  • A keystore contains private keys, and the certificates with their corresponding public keys.

    A truststore contains certificates from other parties that you expect to communicate with, or from Certificate Authorities that you trust to identify other parties.