eclipse website security certificate - eclipse

I am working on httpunit in eclipse.I am accessing a website,through WebConversation class of httpunit.This website uses https protocol.Hence I am getting the below exception when i am trying to run my java program.
Exception: 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
I have downloaded the certificate's certificate in my local machine.How to import it in eclipse?
Thanks

Related

jboss 6.0 - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path

I got PKIX path building failed error on jboss EAP 6.0 Runtime server. Java version is jre7.
I have imported the certificates to the cacerts and truststore also correctly mapped. But I got this error.
Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Eclipse installer showing this error in setup

ERROR:
org.eclipse.equinox.p2.transport.ecf code=1002 Unable to read repository at https://download.eclipse.org/technology/epp/packages/2022-06/202206091200/content.xml.
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Update:
I again reinstalled Eclipse and now I am getting this error.
Java was started out but returned exit code =13

Unable to sign in to Azure from Eclipse

Unable to sign in to Azure from Eclipse(Eclipse IDE 2021‑03).
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Tried Below steps:
Downloading the certificate from portal.azure.com.
Added to all the below places, verified the certificate in cacerts using Portecle.
java\jdk1.7.0_79\jre\lib\security\cacerts
Java\jre7\lib\security\cacerts
Java\jre1.8.0_241\lib\security\cacerts
Java\jdk1.8.0_241\jre\lib\security\cacerts
Eclipse is using the Java C:\Program Files\Java\jdk1.8.0_241\jre
Am I missing something here?
This type of issue mostly occurs when a server changes their HTTPS SSL certificate, and our older version of java doesn’t recognize the root certificate authority (CA).
The solution for this question is discussed in the below thread Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?
You can find more information about the error message & cause in the below document https://support.cloudbees.com/hc/en-us/articles/217078498-PKIX-path-building-failed-error-message

Error installing cucumber by eclipse marketplace

Good afternoon ... It generates the same error. Please perform all the steps mentioned above but this error has not been resolved.
This happens when I want to add cucumber in the eclipse ide by a marketplace
Unable to read repository at https://cucumber.github.io/cucumber-eclipse-update-site-snapshot/content.xml. PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Unable to install plugins in Spring tool suite due to certificate issue

I am getting this error while trying the install the Sonar lint plugin.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This is same as : Spring tool suite- SunCertPathBuilderException: unable to find valid certification path to requested target
So I tried this solution : https://stackoverflow.com/a/56964015/1711670 however it did not work for me.
As per my understanding the error basically means that eclipse is trying to connect with the market place server however it doesnt trust it. Is that right?
How do I fix this issue?
Version details:
Java version 1.8.0_191
STS version
Version: 4.4.0.RELEASE
Build Id: 201909171436