Salesforce
PDII · Question #286
When calling a RESTful web service, the developer must implement two-way SSL authentication to enhance security. The Salesforce admin has generated a self-sign certificate within Salesforce with a…
The correct answer is D. req.setClientCertificateName('ERPSecCertificate'). See the full explanation below for the reasoning.
Question
When calling a RESTful web service, the developer must implement two-way SSL authentication to enhance security. The Salesforce admin has generated a self-sign certificate within Salesforce with a unique name of "ERPSecCertificate". Consider the following code snippet:
Which method must the developer implement in order to sign the HTTP request with the certificate?
Options
- Areq.setHeader('certificate', 'ERPSecCertificate');
- Breq.setSecureCertificate('ERPSecCertificate');
- Creq.setSedure('ERPSecCertificate)';
- Dreq.setClientCertificateName('ERPSecCertificate');
How the community answered
(36 responses)- A8% (3)
- B6% (2)
- C3% (1)
- D83% (30)
Community Discussion
No community discussion yet for this question.