我对自签名 SSL 证书有疑问。
我正在 AWS 上运行 Neo4j,并想将我的 heroku 机器连接到 AWS DB(通过负载均衡器),但我想通过 HTTPS 进行,并且我想使用自签名证书。
虽然我知道如何配置服务器端,但我还想确保客户端使用相同的证书进行安全通信。是否有一些配置可以让我指定我的公共(public)证书 key 以确保连接安全(并且不可能发生中间人攻击)?
最佳答案
您需要更改 Neo4j 设置。
# Certificate location (auto generated if the file does not exist)
org.neo4j.server.webserver.https.cert.location=<path_to_certificate>
# Private key location (auto generated if the file does not exist)
org.neo4j.server.webserver.https.key.location=<path_to_key>
这里有更多信息 - http://neo4j.com/docs/stable/security-server.html#security-server-https
关于ruby - 带有自签名证书的 Neo4j gem https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33191400/