eolinker / apinto

基于golang开发的网关。具有各种插件,可以自行扩展,即插即用。此外,它可以快速帮助企业管理API服务,提高API服务的稳定性和安全性。
https://www.apinto.com
Apache License 2.0
1.41k stars 206 forks source link

bug: 网关无法正常校验https证书 #160

Open nnbbyy opened 6 months ago

nnbbyy commented 6 months ago

Current Behavior

api 和上游都配置正常 请求网关api 返回 tls: failed to verify certificate: x509: cannot validate certificate for 0.0.0.0 because it doesn't contain any IP SANs

0.0.0.0是我服务器的ip

curl --location 'https://api.trongrid.io/wallet/createtransaction' \ --header 'Content-Type: application/json' \ --data '{ "to_address": "41D3136787E667D1E055D2CD5DB4B5F6C880563049", "owner_address": "417946F66D0FC67924DA0AC9936183AB3B07C81126", "amount": 10000000 }'

服务器使用该命令测试 目标节点请求返回是正常的

Expected Behavior

No response

Error Logs

tls: failed to verify certificate: x509: cannot validate certificate for 0.0.0.0 because it doesn't contain any IP SANs

Steps to Reproduce

通过容器运行的控制面板 ,手动安装的0.17.2版本网关服务,上游目标节点的URL:https://api.trongrid.io/wallet/createtransaction

Environment

Dot-Liu commented 5 months ago

麻烦提供一下上游的配置信息