Trust Store vs Key Store - creating with keytool

前端 未结 7 625
粉色の甜心
粉色の甜心 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条回答
  •  感情败类
    2020-11-22 05:49

    There is no difference between keystore and truststore files. Both are files in the proprietary JKS file format. The distinction is in the use: To the best of my knowledge, Java will only use the store that is referenced by the -Djavax.net.ssl.trustStore system property to look for certificates to trust when creating SSL connections. Same for keys and -Djavax.net.ssl.keyStore. But in theory it's fine to use one and the same file for trust- and keystores.

提交回复
热议问题