Search code examples
javaseleniummaven-plugin

while updating pom xml - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException


issue recently occurred after reinstalling intellij and now there are issues like: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


Solution

  • Go to File -> Settings -> Tools -> Server Certificates , and check the box "Accept non-trusted Certificates Automatically". That might solve your problem. Also check your jdk version. I had to change to 1.8.0_192 on my Intellij. I was trying to build a spring boot application.