我必须使用 https 连接到网络服务。服务具有 GeoTrust Global CA 颁发的有效证书。整个认证链如下所示:
当我运行应用程序时
-Djavax.net.debug=all
参数,我在受信任的列表中看到 Global CA:
adding as trusted cert:
Subject: CN=GeoTrust Global CA, O=GeoTrust Inc., C=US
Issuer: CN=GeoTrust Global CA, O=GeoTrust Inc., C=US
Algorithm: RSA; Serial number: 0x23456
Valid from Tue May 21 06:00:00 CEST 2002 until Sat May 21 06:00:00 CEST 2022
但我仍然收到错误:
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
为什么轴不通过 https 验证 web 服务的整个认证链?