Certificate.FindSubject Method


Finds the certificate in Certificate Storage by subject.

[Visual Basic 6.0]
Public Sub FindSubject( _
    FindKey As String, _
    StoreLocation As Long, _
    StoreName As String _
)
[Visual C++]
public: HRESULT FindSubject(
     BSTR FindKey,
     LONG StoreLocation,     
     BSTR StoreName
);

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".
StoreLocation
The certificate storage location, it can be CERT_SYSTEM_STORE_CURRENT_USER or CERT_SYSTEM_STORE_LOCAL_MACHINE
[Visual Basic, VBScript]
Const CERT_SYSTEM_STORE_CURRENT_USER = 65536
Const CERT_SYSTEM_STORE_LOCAL_MACHINE = 131072

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 VB6 - S/MIME
Verify Digital Signature and Decrypt Email in Delphi - S/MIME
Verify Digital Signature and Decrypt Email in VC++ - S/MIME