启用有线加密后如何使用 Node.js 连接到 Firebird?

问题描述 投票:0回答:2

我尝试使用 Node.js“node-firebird”连接到 Firebird 服务器,但总是收到错误消息

客户端和服务器请求的线路加密级别不兼容 回调

问题是我只是尝试连接一家公司向我提供连接数据的服务器,但是我无权更改此 Firebird 服务器中的线路加密,他们也不知道如何做到这一点。

有人可以给我一些线索,告诉他们该怎么做并使其发挥作用吗?或者,如果您对如何更改我的 JS 任何数据以便能够连接有任何建议。

node.js firebird node-firebird
2个回答
1
投票

如何禁用Firebird的wirecrypt设置记录在“Firebird 3.0支持”下的node-firebird文档中(尽管就我个人而言,我建议将

WireCrypt
更改为
Enabled
而不是
Disabled
(默认为
Required
),因此支持有线协议加密的客户端仍然可以加密其连接。

简而言之:

  1. 打开 firebird.conf
  2. 查看
    WireCrypt
    是否已配置,添加或修改为
    WireCrypt = Enabled
    (以
    #
    为前缀的行为注释)
  3. 重新启动火鸟

请谨慎应用节点-firebird 文档中建议的其他设置,因为这可能会导致连接到 Firebird 服务器的其他应用程序出现问题。例如,使用

UserManager = Legacy_UserManager
,而不是建议的
UserManager = Srp, Legacy_UserManager

或者,切换到 Firebird 的另一个 Node.js 库。如果您使用 Firebird 3.0 或更高版本的客户端库,则使用 fbclient/libfbclient 将支持加密。例如,node-firebird-driver-native。鉴于缺乏该库的文档,也许您会发现这个要点很有帮助。


1
投票

firebird.conf
中添加
WireCrypt = Enabled

© www.soinside.com 2019 - 2024. All rights reserved.