Sai3
(Sai)
June 25, 2013, 12:25pm
1
Hi Experts,
I am trying to consume a WSDL but getting below error.As i know little bit,it’s certificate issue
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 am bit confused whether our certificates should there in the provider sytem or we should have their certificates in trust store
Thanks
Sai
Hi Sai,
Please read webservice developers guide. It has complete detail about implementing security in web services.
Sai3
(Sai)
June 25, 2013, 2:09pm
3
I have di it very quickly and one more issue is forgot password of keystore…not sure how to proceed further
Thanks
Sai
system
(system)
June 25, 2013, 3:13pm
4
You’ll have to recreate the keystore.
Sai3
(Sai)
June 25, 2013, 5:33pm
6
Thanks for the reply,
I recreated keystore and placed the certificate in Keystore & TrustStore(Just to make sure) ,created alias & Cleared Cache
Still get same error
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
rmg
(rmg)
June 25, 2013, 5:49pm
7
Did you check or make sure the path is valid as it is complaining about?
Please check this Empower KB #: 1735714 and here is the resolution info on the same error:
Resolution:
Import the CA certificate into the trusted CA store of the JVM
Following are the steps to do that:
Type the following command from command prompt:
keytool -import -trustcacerts -file c:\temp\sagca.crt -alias “softwareag demo” -keystore Software AG_directory\jvm\jvm160_32\jre\lib\security\cacerts
Note: If you are running on a 64-bit operating system, change jvm160_32 to jvm160_64.
To read more about this, refer to the MWS admin guide page 34 from topic “Using My webMethods Server as an HTTPS Client”.
HTH,
RMG
Sai3
(Sai)
June 26, 2013, 12:45pm
8
Hi RMG,
I tried to run those commands but any of them didn’t worked for me.
for immediate resolution,we have downloaded all the XSD & WSDL from browser.Placed them in root drive of IS
Edited the WSDL in such way that can load schema’s from local box.Created web service descriptor(Consumer)
web service consumer got created.Asked the vendor to test web service.I am hoping positive response
one question,how can we browse the knowledge base article in empower?I didn’t find it
Thanks
Sai
rmg
(rmg)
June 26, 2013, 2:56pm
9
OK.
After you login to the Empower site look for the section Knowledge Center link and then click on this link “Search the Knowledge Center by product, article type, and other options” and use the keyword search functionality to browse the KC articles.
HTH,
RMG
Sai3
(Sai)
June 27, 2013, 6:18am
10
Hi All,
Issue fixed
Root cause of the issue is certificates are not imported to designer
As RMG Suggested,above command worked.
Note:it will prompt for keystore password,it’s not wm keystore password.
In internet password given is “changeit” for windows 2008 r2 server
Thanks
Sai.
rmg
(rmg)
June 27, 2013, 3:12pm
11
Awesome…thanks for trying!
Sai3
(Sai)
July 4, 2013, 6:15am
12
Hi,
Now i am trying to import certificate alias in QA,but getting follwing error
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching serviceapplicationqa.jdl.com found
serviceapplicationqa.jdl.com is the servername,but above commands worked in dev?
Thanks
Sai
Sai3
(Sai)
July 5, 2013, 2:35pm
13
it seems to be issue with CA certificate
They are using custom CA Certificate and it was imported to desginer for web service consumer
Finally,it working for dev and not for QA.Is this problem related certificate or source system.Please try to get some debug steps
Another question is can deployer can be used to deploy web services consumer or we have import from WSDL?