Skip to content

域名反向代理外部HTTPS网站报错,提示transport failure reason: TLS error #925

Answered by CH3CHO
limityu asked this question in Q&A
Discussion options

You must be logged in to vote

你这个测试方法不太对。

curl 默认是会校验服务端证书的。你请求用的 host 是 harbor.litye.cn,而服务端返回的服务证书不包含这个域名,所以校验失败。

另外,如果 subject: C=US; ST=Washington; O=xxx Company; CN=www.xxx.com.cn 这一行你没有做过任何处理的话,那说明服务端确实是有 SNI,不同的请求域名使用不同的证书。

不过你确实可以参考上面那个 issue 里的建议,“Also for TLS debugging you may need to turn on trace level logging in order to capture more of the error.”,看看能不能抓下什么详细的日志。也可以抓一下 Gateway 目标域名之间的网络包,看看到底是哪儿断的。

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@limityu
Comment options

@CH3CHO
Comment options

@limityu
Comment options

@CH3CHO
Comment options

Answer selected by limityu
@limityu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants