无法验证_LEAF_SIGNATURE |无法验证第一个证书

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

我的所有服务器上突然开始出现此错误,尽管尝试了此处建议的所有内容,但我仍无法解决它。 无论我尝试访问哪个 URL(例如,包括“google.com”),问题仍然存在。我的环境由 Windows Server 2019 和 Node.js 版本 21.7.3 组成。 我尝试使用 Axios 和 Node-fetch 发出请求,但两者都遇到了相同的错误。令人惊讶的是,当使用“CURL”时,一切都按预期运行。 下面是我一直在使用的代码示例。

const axios = require('axios');
axios.get('https://google.com')
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });
node.js windows ssl axios windows-server
1个回答
0
投票

经过数小时的故障排除,我可以确认这是最近的 Eset Internet Security 更新。

我的 Node 应用程序中的问题如下所示:

Error occurred while trying to proxy request /elastic from localhost:8080 to https://myserver.example (UNABLE_TO_VERIFY_LEAF_SIGNATURE)

对我的情况有帮助的 - Eset Internet Security 设置:

  1. 选择互联网保护
  2. 打开左侧的 SSL/TSL 子菜单
  3. 检查申请和证书的规则。
  4. 如果任何证书被阻止或设置为“自动”,请将其更改为“允许”,并将“扫描操作”更改为忽略。对您知道的证书和 URL 执行此操作。我的问题是开发阶段服务器。
© www.soinside.com 2019 - 2024. All rights reserved.