Active
Project:
Http Client
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2012 at 11:15 UTC
Updated:
14 Oct 2020 at 18:01 UTC
Jump to comment: Most recent
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.