Which code segment should you insert at line 06?

An application uses X509 certificates for data encryption and decryption. The application
stores certificates in the Personal certificates collection of the Current User store. On each
computer, each certificate subject is unique.
The application includes a method named LoadCertificate. The LoadCertificate() method
includes the following code. (Line numbers are included for reference only.)

The LoadCertificate() method must load only certificates for which the subject exactly
matches the searchValue parameter value.
You need to ensure that the LoadCertificate() method loads the correct certificates.
Which code segment should you insert at line 06?

An application uses X509 certificates for data encryption and decryption. The application
stores certificates in the Personal certificates collection of the Current User store. On each
computer, each certificate subject is unique.
The application includes a method named LoadCertificate. The LoadCertificate() method
includes the following code. (Line numbers are included for reference only.)

The LoadCertificate() method must load only certificates for which the subject exactly
matches the searchValue parameter value.
You need to ensure that the LoadCertificate() method loads the correct certificates.
Which code segment should you insert at line 06?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 2

Your email address will not be published. Required fields are marked *


PaulC

PaulC

D is correct

kasp

kasp

I believe you are right.

The findValue parameter for the Find method must be a string representing the subject distinguished name of the certificate. This is a more specific search than that provided by the FindBySubjectName enumeration value. Using the FindBySubjectDistinguishedName value, the Find method performs a case-insensitive string comparison for the entire distinguished name. Searching by subject name is a less precise search.

https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509findtype(v=vs.110).aspx