首页
学习
活动
专区
圈层
工具
发布

KeyStore 和 TrustStore的区别及联系

当服务器提供的证书和公钥到了客户端,客户端就要生成一个TrustStore文件保存这些来自服务器证书和公钥。...,而不是KeyStore; 在以上两种情况中的文件命名要尽量提示其安全敏感程度而不是有歧义或者误导 比如使用KeyStore的场景把文件命名为 truststore.jks,或者该使用TrustStore...文件,但这样做要确保使用者很明确自己永远不会将该KeyStore误当作TrustStore传播出去。...TrustStore 内容 一个TrustStore仅仅用来包含客户端信任的证书,所以,这是一个客户端所信任的来自其他人或者组织的信息的存储文件,而不能用于存储任何安全敏感信息,比如私钥(private...相关资料 java-keystore-truststore-difference KeyStores and TrustStores Difference between keystore and truststore

9.9K10
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    ES 安全认证模块之XPack

    cert --ca elastic-stack-ca.p12 提示输入密码和文件输出路径,可以直接回车,也可以输入密码和输入自定义存放路径进行设置.回车的话,会生成如下文件 3、keystore和truststore...设置密码 keystore:存放公钥,私钥,数字签名等信息 truststore:存放信任的证书 keystore和truststore都存放key,不同的地方是truststore只存放公钥的数字证书...xpack.security.transport.ssl.keystore.secure_password elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password...xpack.security.http.ssl.keystore.secure_password elasticsearch-keystore add xpack.security.http.ssl.truststore.secure_password...xpack.security.enabled: true xpack.security.http.ssl: enabled: false verification_mode: certificate truststore.path

    2K30
    领券