How to resolve PKIX path building failed error??

Опубликовано: 02 Март 2025
на канале: Kumar Raushan
128,429
766

Some time while building our maven project our build fails with below error :

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

Here, we will discuss why it happens and how to resolve this.

keytool -import -alias example -keystore "C:\Program Files\Java\jdk-14\lib\security\cacerts" -file example.cer

Please like and subscribe my channel.