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 section.