70-513 · Question #54
You are maintaining a Windows Communication Foundation (WCF) service that uses a custom username password class to authenticate clients with. The service certificate is hosted in the deployment…
The correct answer is D. HostInstance Credentials.ServiceCertificate SetCertificate(. See the full explanation below for the reasoning.
Question
You are maintaining a Windows Communication Foundation (WCF) service that uses a custom username password class to authenticate clients with. The service certificate is hosted in the deployment server store for trusted root certificate authorities and has a Subject value of TaxServiceKey. Other service certificates hosted on the same server also use TaxServiceKey as a Subject value. You need to ensure that the service identifies itself with a certificate whose subject name and distinguished names are TaxServiceKey. Which code segment should you use?
Options
- AHostInstance Credentials.ServiceCertificate SetCertificate(
- BHostInstance Credentials.ServiceCertificate SetCertificate(
- CHostInstance Credentials.ServiceCertificate SetCertificate(
- DHostInstance Credentials.ServiceCertificate SetCertificate(
How the community answered
(14 responses)- A7% (1)
- B7% (1)
- C14% (2)
- D71% (10)
Community Discussion
No community discussion yet for this question.