Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
neo4j docker image(由plesk管理的vps)无法为与Let';s加密证书_Docker_Ssl_Neo4j_Plesk - Fatal编程技术网

neo4j docker image(由plesk管理的vps)无法为与Let';s加密证书

neo4j docker image(由plesk管理的vps)无法为与Let';s加密证书,docker,ssl,neo4j,plesk,Docker,Ssl,Neo4j,Plesk,我试图通过plesk管理的docker映像在vps上运行neo4j社区 但是,我在配置SSL证书时遇到问题,因此我可以从nodejs安全地连接到它 目前,我在node中得到的错误非常简单: Neo4jError: Failed to connect to server. Please ensure that your database is listening on the correct host and port and that you have compatible encrypti

我试图通过plesk管理的docker映像在vps上运行neo4j社区

但是,我在配置SSL证书时遇到问题,因此我可以从nodejs安全地连接到它

目前,我在node中得到的错误非常简单:

Neo4jError: Failed to connect to server. 
Please ensure that your database is listening on the correct host and port and that you have 
compatible encryption settings both on Neo4j server and driver. Note that the default encryption 
setting has changed in Neo4j 4.0. Caused by: Server certificate is not trusted. If you trust the 
database you are connecting to, use TRUST_CUSTOM_CA_SIGNED_CERTIFICATES and add the signing 
certificate, or the server certificate, to the list of certificates trusted by this driver using 
`neo4j.driver(.., { trustedCertificates:['path/to/certificate.crt']}). This  is a security measure 
to protect against man-in-the-middle attacks. If you are just trying  Neo4j out and are not 
concerned about encryption, simply disable it using `encrypted="ENCRYPTION_OFF"` in the driver 
options. Socket responded with: DEPTH_ZERO_SELF_SIGNED_CERT
我已将这些卷映射如下:

/certificates
到域的letsencrypt live文件夹
db.example.com

然后我尝试通过:
bolt://db.example.com:32771

当我通过浏览器检查时,所提供的证书是自签名的。我已尝试将此证书添加到windows中的受信任证书,但它根本没有执行任何操作

在实例化驱动程序时,还添加了受信任证书的路径:

    this._driver = neo4j.driver(process.env.Neo4jUri, token, {
      encrypted: true,
      trustedCertificates: ['ssl/neo4j.crt'],
    });
我还尝试复制该证书文件夹中的文件,以便命名相应的文件