In the recent past after a system upgrade I notice that we have some network traffic features enabled by system's team. One issue which I started observing soon after is that my Java modules and dependencies are having issues while downloading.
I get the error below
[ERROR] unable to read
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alert.createSSLException (Alert.java:131)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:324)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:267)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:262)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts (CertificateMessage.java:654)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate (CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume (CertificateMessage.java:369)
I have tried to install certificates, reinstall java, and even tried to download the "cer" from browser and setup However all these were futile.
Can someone suggest me a better way we can deal with this issue.
This happens for maven and gradle projects.