Method HttpClient():setCertificate() Foundation

Binds a client certificate from the Windows Certificate Store.

Syntax
 
:setCertificate( <cCertificate> ) --> lSuccess
Parameters
<cCertificate>
A character string specifying the location of the certificate in a certificate store. The string must be in the following format: machine|user\<storename>\<subject>. Note that the string is case-sensitive.
Return

The logical value true (.T.) if the certificate could be set successfully, otherwise it returns false (.F.).

Description

:setCertificate() binds a client certificate to this HTTP client object and allows client-side certificate authentication by the HTTP server. The function IsCertificateAvailable() can be used to check whether a certificate is available on the computer.

Feedback

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.