自签名证书在 4xx 响应代码上不受信任,但在 2xx 响应上有效

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

我通过 Kubernetes 入口控制器在 Kong 中创建了一些服务和路由,我遇到了一个奇怪的问题,我的证书根据返回码被信任/不被信任。基本上,如果 api 返回 4xx,那么浏览器中的证书将不信任该证书,如果它返回 2xx,则该证书是可信的。

这里有一些截图可以更好地阐明问题:

This is a business api that returns an expected 4xx. Certificate is not trusted.

This is a test httpbin service, returning 200. Certificate is trusted

Same httpbin service, returing 400. Certificate not trusted

如果您需要更多详细信息,请告诉我,我很乐意提供。提前谢谢你!

api kubernetes ssl-certificate client-certificates kong
© www.soinside.com 2019 - 2024. All rights reserved.