gpt4 book ai didi

java - java中的SSL可信证书

转载 作者:太空宇宙 更新时间:2023-11-03 15:08:32 25 4
gpt4 key购买 nike

我们是否需要将受信任的 CA 证书显式导入到 java keystore 中?如果是这样,那为什么呢?

我可以理解,我们应该始终将自签名 SSL 证书导入 keystore ,因为它们未经验证,除非 keystore 中存在,否则 java 无法信任。但是,即使对于可信 CA 生产证书,我们是否也需要执行相同的操作?

注意:我使用的是 jdk v1.6.x。

最佳答案

I can understand that we should always import the Self-Signed SSL certificates into the keystore, because they are not verified ones and java can't trust unless it's there in the keystore.

trust 商店中。

But do we need to exercise the same thing even for Trusted CA Production Certificates?

没有。如果 CA 已被 Java 信任库信任,则您无需执行任何操作。

关于java - java中的SSL可信证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33407873/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com