How to use the web_set_certificate function for more than one server
The web_set_certificate is intended to be used for only one connection to a server. This article describes how to use this function for one more than connection in a single script.
The function web_set_certificate specifies the number of a certificate within the list of certificates. The specified certificate is then used whenever a secure Web server requires the client to present a certificate. In some cases, there is more the same connection can be shared among different servers. If you use the function web_set_certificate for the same connection specifying a different certificate number, the changes will not take effect since this function will work on new opened connections only.
In order to use a different certificate specified in the function web_set_certificate for the same connection to the server, include the following function at the beginning of the script: