How to use the web_set_certificate function for more than one server

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:

web_set_sockets_option ("CLOSE_KEEPALIVE_CONNECTIONS","1");

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s