SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed

1. Background After a project updated the Nginx SSL certificate in May 2023, it was normal to access the system directly in the browser, but another project of its own and other third-party systems returned an error message when calling through the interface address: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid […]

Request https error certificate verification failed (javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX

Project scenario: Request https error certificate verification failed (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) Problem description When requesting a third-party HTTPS URL in the project, an error occurs that the SSL certificate verification failed. 14:33:55.195 [main] ERROR com.bd.common.utils.OKHttpUtil – context javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building […]

[FlinkCdc] Flink MysqlCdc failed to connect to the database, how to break SSLHandshakeException?

When synchronizing a new database with Flink MysqlCdc, I encountered a new exception, javax.net.ssl.SSLHandshakeException. According to the exception stack information, when mysqlcdc tried to establish a connection with the mysql server, the connection failed and reported Communications link failure. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not […]

Solve javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path buildin

When the interface accesses the URL of https, the following error is reported: 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 Reason: The certificate library of JAVA already has the startssl ca certificate, but nginx does not have the startssl ca certificate by default, so the HTTPS […]

Dolphinscheduler installation failed: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disab

dolphinscheduler installation failed Solution: Add after the jdbc configuration information: useSSL=false That is: SPRING_DATASOURCE_URL=”jdbc:mysql://172.16.11.154:3306/dolphinscheduler?useUnicode=true &characterEncoding=UTF-8 &serverTimezone=UTC & &useSSL=false” The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) ~[mysql-connector-java-8.0.16.jar:8.0.16] at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) ~[mysql-connector-java-8.0.16.jar:8.0.16] at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:835) ~[mysql-connector-java-8.0.16.jar:8.0.16] at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:455) ~[mysql-connector-java-8.0.16.jar:8.0.16] at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240) ~[mysql-connector-java-8.0.16.jar:8.0.16] […]

Solve the remote call three-party interface: javax.net.ssl.SSLHandshakeException error

1. Foreword Recently, I was connecting to the Tencent conference API interface, and after the authentication was completed, I started calling the other party’s interface. During this process, an error occurred in the call: javax.net.ssl.SSLHandshakeException. 2. Reason When you are making an https request, there is no trust certificate for the three-party service in the […]

jdk1.6 javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

The current project is using jdk1.6, and the third-party interface has been called and upgraded, and this error has been reported when calling. javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake Put the project in jdk1.8 to run, and you can request normally, no problem. Cause Analysis: 1. The third-party interface uses the TLS1.2 protocol 2.jdk1.6 […]

Exception: javax.net.ssl.SSLHandshakeException: PKIX path building failed: SunCertPathBuilderException

Article directory overview reason Solution Method 1: Java implementation disables SSL verification (use with caution) Method 2: Update the Java security certificate (the certificate is missing or invalid in the Java environment) Method 3: Update the root certificate of the operating system (if the root certificate of the operating system is expired or incomplete) Overview […]

jenkinsjavax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPath

When upgrading jenkins from 2.23 to 2.375.2, a plug-in download error occurs. The error content is as follows: java.security.cert.CertificateNotYetValidException: NotBefore: Wed Mar 15 11:36:14 CST 2023 at java.base/sun.security.x509.CertificateValidity.valid(CertificateValidity.java:273) at java.base/sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:675) at java.base/sun.security.provider.certpath.BasicChecker.verifyValidity(BasicChecker.java:190) at java.base/sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:144) at java.base/sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:125) Caused: java.security.cert.CertPathValidatorException: validity check failed at java.base/sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:135) at java.base/sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:224) at java.base/sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:144) at java.base/sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:83) at java.base/java.security.cert.CertPathValidator.validate(CertPathValidator.java:309) at java.base/sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:364) Caused: sun.security.validator.ValidatorException: […]

[Solved] java operation k8s api error: SSLHandshakeException: should not be presented in certificate_request

0 Workaround Add the following parameters to the jdk startup parameters to modify the ssl client protocol: -Djdk.tls.client.protocols=TLSv1.2 1 Error details and solutions The local java program unit test calls the k8s related https api and an error occurs SSLHandshakeException: should not be presented in certificate_request, the details are as follows: Caused by: javax.net.ssl.SSLHandshakeException: extension […]