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?
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
Comment #1
Hugo Wetterberg commentedYou should be able to use the $client->options['curlopts'] to set CURLOPT_SSLCERT, CURLOPT_SSLKEY and related options.
Comment #2
john franklin commentedWhile 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.