Quick BI调用开放API提示证书相关的异常:“SSLHandshakeException: None of the TrustManagers trust this certificate chain”。
更新时间:
问题描述
Quick BI调用开放API提示证书相关的异常:“SSLHandshakeException: None of the TrustManagers trust this certificate chain”。
解决方案
SDK使用HTTPS调用时出现上述问题可以使用如下代码开启证书忽略。
HttpClientConfig httpClientConfig = HttpClientConfig.getDefault();
// 开启证书忽略
httpClientConfig.setIgnoreSSLCerts(true);
client = HttpClientFactory.buildClient(host, rootPath, false, ak, sk, httpClientConfig, true);适用于
Quick BI
独立部署5.5.1
该文章对您有帮助吗?