apinto icon indicating copy to clipboard operation
apinto copied to clipboard

bug: 上游服务是https服务(证书私有)请求报x509: cannot validate certificate错误

Open xupeichun opened this issue 2 years ago • 3 comments

Current Behavior

bug: 上游服务是https服务(证书私有)请求报x509: cannot validate certificate错误

Expected Behavior

No response

Error Logs

x509: cannot validate certificate for ip because it doesn't contain any IP SANs

Steps to Reproduce

bug: 上游服务是https服务(证书私有)请求报x509: cannot validate certificate错误

Environment

  • APINTO version (run apinto version):
  • Operating system (run uname -a): bug: 上游服务是https服务(证书私有)请求报x509: cannot validate certificate错误

xupeichun avatar Aug 23 '23 08:08 xupeichun

这个不是bug,只是我们强制对证书做了检查,如果您需要跳过检查,可以修改代码进行支持 afc41c2e006b943cc56db0140ecbec3e 后续我们考虑将是否跳过证书检查作为一个选项供使用者选择,更新后我再通知您

Dot-Liu avatar Aug 23 '23 10:08 Dot-Liu

意思是不能使用私有证书还是上游服务不能使用https?

fulus06 avatar Sep 09 '23 07:09 fulus06

上游服务不能使用无效证书,包括过期证书和自签证书

Dot-Liu avatar Sep 10 '23 11:09 Dot-Liu