Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • What are you trying to do ? 2-way SSL? I don't think you need to do that if you are integrating 2 Salesforce orgs. If you have created a certificate in Org A, just call from Org B with https as the endpoint. Commented Aug 14, 2018 at 10:05
  • No, i am not trying 2 way SSL. i am just trying to integrate 2 sfdc orgs. I have tried calling org A from org B using the code snippet I mentioned, but i am getting Status code 401 , Unauthorized error. Commented Aug 14, 2018 at 10:09
  • comment httpReq.setClientCertificateName('TestCertificate'); and try Commented Aug 14, 2018 at 10:13
  • Its already there in the code i have given. Commented Aug 14, 2018 at 10:15
  • I said remove/comment it. Please read the comment again. Commented Aug 14, 2018 at 10:16