nebula icon indicating copy to clipboard operation
nebula copied to clipboard

NebulaGraph Console SSL Connection

Open vealfan opened this issue 1 year ago • 0 comments

我们是容器化部署环境!!!

在nebula的三个服务开启了SSL加密通信,并且nebula的端口都是正常监听状态,但是在使用NebulaGraph Console客户端连接的时候,客户端连接超时。 报错日志: 2024/05/10 22:03:58 Fail to initialize the connection pool, host: 127.0.0.1, port: 26740, failed to open connection, error: failed to open transport, error: dial tcp 127.0.0.1:26740: connect: connection timed out panic: Fail to initialize the connection pool, host: 127.0.0.1, port: 26740, failed to open connection, error: failed to open transport, error: dial tcp 127.0.0.1:26740: connect: connection timed out

goroutine 1 [running]: log.Panicf({0xc00019a000?, 0x3e?}, {0x0?, 0x3?, 0x3?}) /opt/hostedtoolcache/go/1.18.10/x64/src/log/log.go:392 +0x67 main.main() /home/runner/work/nebula-console/nebula-console/main.go:534 +0x698

real 2m8.728s user 0m0.002s sys 0m0.004s

我测试使用的证书生成方式是:https://github.com/vesoft-inc/nebula-go/tree/master/nebula-docker-compose/secrets

我们nebula的SSL配置如下: image

客户端连接命令如下: ./nebula-console -addr 127.0.0.1 -port 26740 -u root -p nebula -enable_ssl -ssl_root_ca_path /home/root.crt -ssl_cert_path /home/client.crt -ssl_private_key_path /home/client.key

vealfan avatar May 10 '24 15:05 vealfan