我生成 ssl 证书并将其保存在 trustStore 中。 然后我尝试在没有代理的情况下连接到 https 服务器,它没问题。 当我使用代理时,生成了一个异常:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
能不能给个解决方案
最佳答案
代理需要出示您的客户端信任的证书,否则您的客户端会将其视为攻击并停止连接。
关于SSL 证书 : connect to ssl server through a proxy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36201286/