gpt4 book ai didi

https - Neo4j https 通讯

转载 作者:行者123 更新时间:2023-12-01 03:49:37 27 4
gpt4 key购买 nike

有没有办法只允许 https 而不是 http 与 Neo4j 服务器通信?另外,Neo4j Shell 的通信使用哪个 channel ,http 还是 https?

最佳答案

这来自 Neo4j 文档:

HTTPS support

Neo4j 服务器内置了对通过 HTTPS 进行 SSL 加密通信的支持。服务器第一次启动时,它会自动生成一个自签名 SSL 证书和一个私钥。由于证书是自签名的,因此依赖于生产使用是不安全的,相反,您应该提供自己的 key 和证书供服务器使用。

要提供您自己的 key 和证书,请替换生成的 key 和证书,或更改 neo4j-server.properties 文件以设置您的证书和 key 的位置:

# Certificate location (auto generated if the file does not exist)
org.neo4j.server.webserver.https.cert.location=ssl/snakeoil.cert

# Private key location (auto generated if the file does not exist)
org.neo4j.server.webserver.https.key.location=ssl/snakeoil.key

请注意, key 应未加密。确保您在私钥上设置了正确的权限,以便只有 Neo4j 服务器用户可以读/写它。

Neo4j 还支持链式 SSL 证书。这需要将 PEM 格式的所有证书组合在一个文件中,并且私钥需要采用 DER 格式。

您可以在同一配置文件中设置 HTTPS 连接器应绑定(bind)到的端口,以及关闭 HTTPS:
# Turn https-support on/off
org.neo4j.server.webserver.https.enabled=true

# https port (for all data, administrative, and UI access)
org.neo4j.server.webserver.https.port=443

关于https - Neo4j https 通讯,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23989334/

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