Trust Store vs Key Store - creating with keytool

前端 未结 7 712
粉色の甜心
粉色の甜心 2020-11-22 05:27

I understand that the keystore would usually hold private/public keys and the trust store only public keys (and represents the list of trusted parties you intend to communic

7条回答
  •  Happy的楠姐
    2020-11-22 05:57

    In simplest terms :

    Keystore is used to store your credential (server or client) while truststore is used to store others credential (Certificates from CA).

    Keystore is needed when you are setting up server side on SSL, it is used to store server's identity certificate, which server will present to a client on the connection while trust store setup on client side must contain to make the connection work. If you browser to connect to any website over SSL it verifies certificate presented by server against its truststore.

提交回复
热议问题