Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP模块调用第三方应用报错:self-signed certificate in certificate chain #1837

Closed
3 of 7 tasks
ppkitty opened this issue Jun 25, 2024 · 7 comments
Closed
3 of 7 tasks
Labels
bug Something isn't working

Comments

@ppkitty
Copy link

ppkitty commented Jun 25, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号:

问题描述, 日志截图
我们在 HTTP模块中调用ansible的api, ansible是自签发证书,我们也在Fastgpt这边部署了ansible的根证书,但是调用的时候报错:
{
"error": {
"message": "self-signed certificate in certificate chain",
"name": "Error",
"method": "post",
"baseURL": "
http://fastgpt-xxxxxx:3000/"
,
"url": "
https://awx.apps.os.xxxxxx.com/api/v2/job_templates/116/launch/"
,
"code": "SELF_SIGNED_CERT_IN_CHAIN"
}

复现步骤

预期结果
能够顺利调用到自签发证书的第三方应用

相关截图
{
"error": {
"message": "self-signed certificate in certificate chain",
"name": "Error",
"method": "post",
"baseURL": "
http://fastgpt-xxxxxx:3000/"
,
"url": "
https://awx.apps.os.xxxxxx.com/api/v2/job_templates/116/launch/"
,
"code": "SELF_SIGNED_CERT_IN_CHAIN"
}

@ppkitty ppkitty added the bug Something isn't working label Jun 25, 2024
@ppkitty ppkitty closed this as completed Jun 25, 2024
@ppkitty ppkitty reopened this Jun 25, 2024
@c121914yu
Copy link
Collaborator

看着是这个地址就是错的

@ppkitty
Copy link
Author

ppkitty commented Jun 26, 2024

请问是哪个地址错了呢?fastgpt那个还是第三方应用,能不能给一个正确的例子呢?谢谢

@c121914yu
Copy link
Collaborator

请问是哪个地址错了呢?fastgpt那个还是第三方应用,能不能给一个正确的例子呢?谢谢

请求的接口报错。和fastgpt没关系。

@ppkitty
Copy link
Author

ppkitty commented Jun 27, 2024

是请求的接口报错:self-signed certificate in certificate chain,这个错是fastgpt没有部署ansible的自签发证书。问题是我们在Fastgpt部署了ansible的根证书还会报这个错。但在其他的应用中同样的根部署,同样的调用就可以成功。所以想理解下fastgpt调用根证书是怎么调的,是不是我们部署得有问题。

@c121914yu
Copy link
Collaborator

c121914yu commented Jun 27, 2024

是请求的接口报错:self-signed certificate in certificate chain,这个错是fastgpt没有部署ansible的自签发证书。问题是我们在Fastgpt部署了ansible的根证书还会报这个错。但在其他的应用中同样的根部署,同样的调用就可以成功。所以想理解下fastgpt调用根证书是怎么调的,是不是我们部署得有问题。

没啥特殊操作,就是正常 request 。而且证书问题,应该是目标服务的问题吧,和请求方怎么部署会有关系么。

@cloudtuotuo
Copy link

我这边也复现了,在nginx上部署了AD CS生成的内网证书,代理searxng服务,浏览器访问、curl都可以正常访问https,但在fastgpt里调用时就会报这个错误
应该是fastgpt服务端需要也导入内网证书才行

@c121914yu
Copy link
Collaborator

#1830
参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants