- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在 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/
我是一名优秀的程序员,十分优秀!