Truststore and Keystore Definitions
问题 What's the difference between a keystore and a truststore? 回答1: 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. 回答2: A keystore contains private keys. You only need this if you are a server, or if the server requires client authentication. A truststore contains CA certificates to trust.