Certificate.FindSubject Method

Finds the certificate in Certificate Storage by subject.

[Visual Basic]
Public Sub FindSubject( _
    findKey As String, _
    storeLocation As Certificate.CertificateStoreLocation, _
    storeName As String _
public void FindSubject(
     string findKey,
     Certificate.CertificateStoreLocation storeLocation,     
     string storeName
public: void FindSubject(
     String^ findKey,
     Certificate.CertificateStoreLocation storeLocation,     
     String^ storeName
public function FindSubject( 
    findKey : String,
    keyLocation : Certificate.CertificateStoreLocation,
    storeName : String    


The specified string in certificate subject.
The collection name in certificate storage, the value can be: "My", "Root", "Trust", "CA" and "AddressBook".
The certificate storage location, it can be Certificate.CertificateStoreLocation.CERT_SYSTEM_STORE_CURRENT_USER or Certificate.CertificateStoreLocation.CERT_SYSTEM_STORE_LOCAL_MACHINE


To learn more about email digital signature and encryption, please refer to Digital Signature and E-mail Encryption/Decryption section.
To sign and encrypt email content, please refer to EASendMail SMTP Component.

See Also

Mail.VerifySignature Method
Mail.Decrypt Method

Online Tutorials

Verify Digital Signature and Decrypt Email in C# - S/MIME
Verify Digital Signature and Decrypt Email in VB - S/MIME
Verify Digital Signature and Decrypt Email in C++/CLI - S/MIME