gpt4 book ai didi

java - 如何为 Neo4j 的 RestGraphDatabase 关闭 SSL 验证?

转载 作者:太空宇宙 更新时间:2023-11-03 14:58:36 24 4
gpt4 key购买 nike

我在 SSL 后运行我的 NEO4j HA 集群。

我正在用 Java 编写一个客户端来管理一些数据。现在因为我只使用 SSL 来加密通信,所以我使用的是自签名证书。但是现在我面临着一个

uglycom.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException

关于如何告诉 Neo4J 不要验证证书的任何想法?

最佳答案

您不需要自己生成自签名证书,Neo4j 会在配置后为您生成。

http://docs.neo4j.org/chunked/stable/security-server.html#_https_support

The Neo4j server includes built in support for SSL encrypted communication over HTTPS. The first time the server starts, it automatically generates a self-signed SSL certificate and a private key. Because the certificate is self signed, it is not safe to rely on for production use, instead, you should provide your own key and certificate for the server to use.

如果您使用的是 Neo4j 生成的自签名证书并且您仍然遇到问题,请使用 neo4j-server.properties 文件中的配置详细信息更新您的问题您的 HA 实例(如果它们不相同)。

关于java - 如何为 Neo4j 的 RestGraphDatabase 关闭 SSL 验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25891594/

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