A java microservice function exception in the environment, look at the logs reporting errors.
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 self-signed certificate used by the customer is not trusted by jdk.
Import the customer domain SSL certificate into jdk library.
# export LANG=”en_US.UTF-8″
# openssl s_client -connect www.example.com:443 < /dev/null | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > www.example.com.crt
# keytool -import -file www.example.com.crt -alias www.example.com -keystore $JAVA_HOME/jre/lib/security/cacerts –storepass “changeit” –noprompt -trustcacerts
Restart the relevant java application and solve it.
Read More:
- [Exception] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
- Win assembleDebug Downloading gradle.zip Error: Exception in thread “main” java.lang.RuntimeException: javax.net.ssl.SSLExce
- How to Solve ERROR – unregister mbean error javax.management.InstanceNotFoundException: com.alibaba.druid:type=
- How to Solve Chrome Error: net::ERR_FAILED
- How to Solve Error: EOF occurred in violation of protocol (_ssl.c:877)
- OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failur
- [Solved] LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- [Solved] LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- How to parse JSON string in.Net [error reading job object from jsonreader. Current jsonreader item is not an obj]
- [Solved] Postman Error: SSL Error: Self signed certificate Disable SSL Verification
- SSL_read: SSL_ERROR_SYSCALL, errno 10054 [How to Solve]
- Flutter Xcode Module not found or LibreSSL SSL_connect: SSL_ERROR_SYSCALL
- [Solved] Compile the program error: undefined reference to `cv::dnn::dnn4_v20210301::Net::~Net()‘
- [Solved] Git OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
- Git Error: error RPC failed; curl 56 OpenSSL SSL_read SSL_ERROR_SYSCALL, errno 10054
- [Solved] OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
- [Solved] pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- [Solved] net core HTTP Error 500.31 – Failed to load ASP.NET Core runtime HTTP Error 500.30 – ASP.NET Core
- How to Solve elasticsearch-7.15.1 operation errors
- How to Solve Error: Heartbeating to master:7182 failed.