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 _
)
[C#]
public void FindSubject(
     string findKey,
     Certificate.CertificateStoreLocation storeLocation,     
     string storeName
);
[C++]
public: void FindSubject(
     String^ findKey,
     Certificate.CertificateStoreLocation storeLocation,     
     String^ storeName
);
[JScript]
public function FindSubject( 
    findKey : String,
    keyLocation : Certificate.CertificateStoreLocation,
    storeName : String    
);

Parameters

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

Remarks

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