Gets and sets a value that specifies the name of the local certificate store.
A string which specifies the certificate store name. The default value is the current user's personal certificate store.
The CertificateStore property is used to specify the name of the certificate store which contains the security certificate to use when establishing a secure connection. If the application is designed to function as a server, then this certificate will be provided to the client when negotiating the secure session. If the application is designed to function as a client, then this property is used to specify the name of a client certificate to be sent to the server for authentication purposes.
This property should be set before calling the Accept method in a server application, or prior to establishing a secure connection with a server by calling the Connect method. By default, the certificate store name "MY" is used which contains the personal certificates and private keys for the current user.
The following system certificate stores are predefined:
| Store Name | Description |
|---|---|
| CA | Certification authority certificates. These are certificates that are issued by entities which are entrusted to issue certificates to other individuals or organizations. Companies such as VeriSign and Thawte act as certification authorities. |
| MY | Personal certificates and their associated private keys for the current user. This store typically holds the client certificates used to establish a user's credentials. |
| ROOT | Certificates that have been self-signed by a certificate authority. Root certificates for a number of different certification authorities such as VeriSign and Thawte are installed as part of the operating system and periodically updated by Microsoft. |
Certificates may be installed and viewed on the local system with CertMgr.exe, a utility which is available as part of the Microsoft Platform SDK.
FileTransfer Class | SocketTools Namespace