function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PureFactsPureFacts 

Salesforce SSO from .Net application - Invalid Certificate

I am following the directions in the post https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application and have almost gotten it to work but am running in a invalid certificate problem

I have download the cert from the the Identify Provider setup page as per instructions and am using that cert in the sample app but when it goes to check the signature it says certificate is invalid.

It does the redirect to the salesforce login page and I see the response after authentication with the SAMLResponse filled in as expected.

I am pretty sure it is a config issue but not sure what I should be looking at.

Additionally - I have setup the Connected Apps feature and I don't see a the SAMLReponse at all in the request to my application (I am also pretty sure these are related)

Thanks in advance.

Whatty

PureFactsPureFacts
Where do I start trouble-shooting this - it is like a black box at this moment and I don't know where I should be looking?

Anyone?
SeanRSeanR
You could try ignoring the cert validation to hep with troubleshooting, use

ServicePointManager.ServerCertificateValidationCallback += (mender, certificate, chain, sslPolicyErrors) => true;

in your web service constructor. It will bypass invaild ssl certs.

Regards

Sean