I am trying a simple rest call from one instance of salesforce to another. Server Endpoint URL is on https. I want to confirm, will making such call to https endpoint alone, encrypt the Endpoint parameters (soql in my case) along with data sent back by server ? Or do I need to implement CA certificates somewhere ?

Http http = new Http();
HttpRequest request = new HttpRequest();
request.setHeader('Content-Type', 'application/x-www-form-urlencoded');     
HttpResponse response = http.send(request);
System.debug('Response code: ' + response.getStatusCode());

Thanks for your time !


The traffic would be encrypted, only Salesforce could see the unencrypted data on each end. Also, as a practical matter, internal API calls (between orgs) never leave the Salesforce Data Center, so there wouldn't be any chance for an interloper to see the data anyways.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.