+ Start a Discussion
anita coilpillai 5anita coilpillai 5 

Unable to use the SOAP Login API

Hi, I am building a client application to consume the Salesforce webservices using SOAP requests. I am getting the following error when i login itself. com.sforce.ws.ConnectionException: Failed to send request to https://login.salesforce.com/services/Soap/c/33.0/0DFj0000000L5Xv. Thisi is caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPaathBuilderException: unable to find valid certification path to requested target
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)

I know this is because I am not having the required certificate in my environment. From what I have been reading, all the certificates which I can generate in salesforce are for accessing external webservices from Salesforce. Can somebody direct me to the right certificate.

 
BalajiRanganathanBalajiRanganathan
does your arg has mutual authentication enabled?
https://help.salesforce.com/htviewhelpdoc?id=security_keys_about.htm&siteLang=en_US

if enabled check "Enable the Enforce SSL/TLS Mutual Authentication user permission" is checked for the api user.