Does this Client module support the use of SSL Client Certificates?

If so could someone provide a sample implementation/point me in the right direction?

Comments

Hugo Wetterberg’s picture

You should be able to use the $client->options['curlopts'] to set CURLOPT_SSLCERT, CURLOPT_SSLKEY and related options.

john franklin’s picture

Version: 6.x-2.3 » 7.x-2.x-dev
Component: Documentation » Code
Category: Support request » Feature request
Issue summary: View changes

While you can do it as @Hugo Wetterberg describes, there should be a simpler way to do it. The calling code should be able to call $client->addClientCert($cert, $key, $password) (or something similar) and let the HttpClient or delegate handle setting the php cURL options and possibly do some pre-flight checks on the cert, key and password to ensure they're valid.

Changing to the 7.x version of the module (6.x is done, sorry), and turning it into a feature request.