While calling Loqate api, getting certificate error - api

While calling loqate api https://api.addressy.com
Please Help me in resolving this
[BRA-100006- SSL configuration is not well defined
ServiceException: BRA-100006 - SSL configuration is not well defined
SunCertPathBuilderException: BRA-003 - An unexpected error occured
(sun.security.provider.certpath.SunCertPathBuilderExpection with the following message:
sun.security.provider.certpath.SunCertPathBuilderExpection: unable to to find valid certification path to request target
Validationexception: BRA-003 - An unexpected error occurred (sun.security.validator.ValidatorException) with the following message
sun.security.provider.certpath.SunCertPathBuilderExpection: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderexception:
unable to find valid certification path to requested target.

Related

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

I have Talend Big Data application which is I want to run a job. It contains "tREST" component that supposed to fetch REST API endpoint. All is fine when I'm using Postman, I get all the results that I want.
But when I executed the job, it gives me this error.
Starting job test_api at 14:28 08/03/2022.
[statistics] connecting to socket on port 3641
[statistics] connected
Exception in component tREST_1 (test_api)
com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: PKIX
path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.j ava:155)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at ace.test_api_0_1.test_api.tREST_1Process(test_api.java:983)
at ace.test_api_0_1.test_api.runJobInTOS(test_api.java:1674)
at ace.test_api_0_1.test_api.main(test_api.java:1436)
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification
path to requested target`
I already run the troubleshoot as mentioned in this thread https://stackoverflow.com/a/12524960
but I believe I only save the certification as in global, not in the right path. Question is how can I store it in Talend or java path?

Gradle failed to build the app - unable to find valid certification path to requested target

Anyone can suggest me how to add the gradle trust all jar in my existing project. i have added the below information in
enter image description here
But i have received the below error:Caused by:
org.gradle.internal.resource.transport.http.HttpRequestException: The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/6.8.1/userguide/build_environment.html#gradle_system_propert at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:128) Caused by: 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
Please help or suggest how to eradicate the PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

soapUI - how to set ignore SSL validation?

Hello I need a simple method to ask soapUI to ignore SSL validation when I call an https sevice.
Acuatlly my error is unable to find valid certification path when I import tha wadl.
org.apache.xmlbeans.XmlException: 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
Maybe somethong to set on the SoapUI-5.2.0.vmoptions...?
This is my actual file:
-Xms128m
-Xmx1000m
-Dsoapui.properties=soapui.properties
-Dsoapui.home=D:\Programmi\soapUI\SoapUI-5.2.0/bin
-Dsoapui.ext.libraries=D:\Programmi\soapUI\SoapUI-5.2.0/bin/ext
-Dsoapui.ext.listeners=D:\Programmi\soapUI\SoapUI-5.2.0/bin/listeners
-Dsoapui.ext.actions=D:\Programmi\soapUI\SoapUI-5.2.0/bin/actions
-Dwsi.dir=D:\Programmi\soapUI\SoapUI-5.2.0/wsi-test-tools
-Djava.library.path=D:\Programmi\soapUI\SoapUI-5.2.0/bin
-Djava.util.Arrays.useLegacyMergeSort=true
-splash:SoapUI-Spashscreen.png
-Dsun.security.ssl.allowUnsafeRenegotiation=true

KarateUI: How to Handle SSL Certificate during geckodriver configuration? [duplicate]

I've connect mongoDb with SSL & Certs(Trust, Keystore) using Springboot
System.setProperty("javax.net.ssl.trustStore", trustStoreFilePath.getPath());
System.setProperty("javax.net.ssl.trustStorePassword", truststorePassword);
System.setProperty("javax.net.ssl.keyStore", keyStoreFilePath.getPath());
System.setProperty("javax.net.ssl.keyStorePassword", keystorePassword);
Then, able to connect successfully
Then, tried REST call on https://xxxxxx.net/api/v1/login
Added and tried below options
- karate.configure('ssl', true);
- * configure ssl = true
i'm getting below error -
admin_login.feature
21:43:28.106 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - 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, http call failed after 943 milliseconds for URL: https://xxxxxx.net/api/v1/login
21:43:28.107 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - http request failed:
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
21:43:28.114 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - feature call failed: classpath:admin_login.feature
arg: [object Object]
admin_login.feature:8 -
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
21:43:28.116 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - javascript function call failed:
admin_login.feature:8 -
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
if i'm not connecting db with ssl. able to call all REST calls
Please help on this.
SSL can be tricky, you may need time and patience.
Normally * configure ssl = true should just work in Karate because it will disable certificate validation. Sounds like here you have set some System properties that is being picked up by Karate also. Refer https://github.com/intuit/karate#system-properties-for-ssl-and-http-proxy
So maybe if you use the advanced form of configure ssl you can get it it work.
Remember if are still stuck and you need more support, follow the instructions here: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

How to fix - `ERROR com.intuit.karate - http request failed`

I've connect mongoDb with SSL & Certs(Trust, Keystore) using Springboot
System.setProperty("javax.net.ssl.trustStore", trustStoreFilePath.getPath());
System.setProperty("javax.net.ssl.trustStorePassword", truststorePassword);
System.setProperty("javax.net.ssl.keyStore", keyStoreFilePath.getPath());
System.setProperty("javax.net.ssl.keyStorePassword", keystorePassword);
Then, able to connect successfully
Then, tried REST call on https://xxxxxx.net/api/v1/login
Added and tried below options
- karate.configure('ssl', true);
- * configure ssl = true
i'm getting below error -
admin_login.feature
21:43:28.106 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - 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, http call failed after 943 milliseconds for URL: https://xxxxxx.net/api/v1/login
21:43:28.107 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - http request failed:
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
21:43:28.114 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - feature call failed: classpath:admin_login.feature
arg: [object Object]
admin_login.feature:8 -
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
21:43:28.116 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - javascript function call failed:
admin_login.feature:8 -
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
if i'm not connecting db with ssl. able to call all REST calls
Please help on this.
SSL can be tricky, you may need time and patience.
Normally * configure ssl = true should just work in Karate because it will disable certificate validation. Sounds like here you have set some System properties that is being picked up by Karate also. Refer https://github.com/intuit/karate#system-properties-for-ssl-and-http-proxy
So maybe if you use the advanced form of configure ssl you can get it it work.
Remember if are still stuck and you need more support, follow the instructions here: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue