#20987 [Com]: Problem with curl_setopt and client certificates

From: Date: Fri, 20 Dec 2002 08:08:14 +0000
Subject: #20987 [Com]: Problem with curl_setopt and client certificates
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28082@lists.php.net to get a copy of this message
ID: 20987 Comment by: daniel@haxx.se Reported By: dnorrell@gmx.net Status: Open Bug Type: cURL related Operating System: Redhat Linux 7.2 PHP Version: 4.3.0RC3 New Comment: Basicly, dnorrell wants this little patch applied and I think (s)he is right: diff -u -r1.2 interface.c --- interface.c 14 Nov 2002 11:41:24 -0000 1.2 +++ interface.c 20 Dec 2002 08:07:16 -0000 @@ -794,6 +794,7 @@ case CURLOPT_USERAGENT: case CURLOPT_FTPPORT: case CURLOPT_COOKIE: + case CURLOPT_SSLCERT: case CURLOPT_COOKIEFILE: case CURLOPT_REFERER: case CURLOPT_INTERFACE: Previous Comments: ------------------------------------------------------------------------ [2002-12-13 04:48:17] dnorrell@gmx.net It appears that if you try to specify a client certficate for an HTTPS connection using the CURLOPT_SSLCERT option, nothing gets set. An example would be: curl_setopt($ch, CURLOPT_SSLCERT, "client.pem"); A quick look at the PHP source seems to indicate that this option is omitted from the curl_setopt function. If I add it it works fine. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20987&edit=1

« previous php.bugs (#28082) next »