Skip to content

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