Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HttpClientFactory.java #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update HttpClientFactory.java #16

wants to merge 1 commit into from

Conversation

lizhq
Copy link

@lizhq lizhq commented Mar 19, 2024

JDK1.8 , 使用 MaasServiceImpl 报错 , 报错如下, 根因是 maas-api.ml-platform-cn-beijing.volces.com 域名对JDK来说不可信。 (当然可以把证书导入进Jre来解决,但是这里隐藏着证书过期后带来的风险,不确定证书何时更换或过期。改改动来取消证书验证) javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)

JDK1.8 , 使用 MaasServiceImpl  报错 , 报错如下, 根因是 `maas-api.ml-platform-cn-beijing.volces.com` 域名对JDK来说不可信。
(当然可以把证书导入进Jre来解决,但是这里隐藏着证书过期后带来的风险,不确定证书何时更换或过期。改改动来取消证书验证)
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant