Functions and Directives

Function CertificateSelect() Professional

Selects the certificate for SSL connections.

CertificateSelect( [<cSubject>] [, <cStoreName>] [, <cLocation>] )
A character string with the name of the entity associated with the SSL certificate. The subject name is case-sensitive. It defaults to the computer name.
A character string specifying the name of the certificate store. If no store name is specified, "my" is used which corresponds to the default store.
A character string which selects the location of the certificate store. This can be either "user" or "machine". If no location is passed, the machine context is used as the default.

The logical value true (.T.), if the specified certificate is selected for SSL communication. Otherwise, the value false (.F.) is returned.


The function CertificateSelect() selects a SSL certificate from a certificate store. The SSL certificate must be specified via the subject name, the name of the certificate store, and the location the store resides in. A certificate store can exist either in the user or in the machine context. The user context contains certificates for the current user, whereas certificates in the machine context are valid for the local machine.

After a SSL certificate has been selected via CertificateSelect(), the certificate is used by SocketNegotiateSSL() for negotiating subsequent SSL connections in the current thread.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.