Truststore and Keystore Definitions

encryption-asymmetrickeystoretruststore

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

Best Answer

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.