I am getting this error while trying to connect to Nexus Maven proxy repository, but Nexus is running over HTTPS with a self-signed certificate.
How can I bypass SSL verification in this scenario in Gradle 4.5?
sun.security.validator.validatorexception pkix path building failed
sun.security.provider.certpath.suncertpathbuilderexception:
unable to find valid certification path to requested target
In my case, we did not have access to import certificates in cacerts. But, we were able to install the certificates in Windows Trusted Root Certification Authority
. In gradle.properties
, after adding below 2 properties, I was able to override cacerts and get over the SSL issue
systemProp.javax.net.ssl.trustStore=C:\\Windows\\win.ini
systemProp.javax.net.ssl.trustStoreType=Windows-ROOT
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With