ID: 22379
User updated by: jason at hdev dot net
Reported By: jason at hdev dot net
-Status: Bogus
+Status: Closed
Bug Type: cURL related
Operating System: Windows 2000
PHP Version: 4.3.1
Assigned To: edink
New Comment:
Resolved. This works with
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
Previous Comments:
------------------------------------------------------------------------
[2003-02-25 18:52:00] jason at hdev dot net
By the way, can I use ca-bundle.crt to enable SSL in Apache, and how to
find out how to do this?
------------------------------------------------------------------------
[2003-02-25 18:45:06] jason at hdev dot net
I've just tried the ca-bundle.crt method, and confirm that it doesn't
seem to work.
------------------------------------------------------------------------
[2003-02-25 17:07:49] bharris at spro dot net
Scratch the CAFILE method, it doesn't work...my test was flawed :(
------------------------------------------------------------------------
[2003-02-25 16:54:55] bharris at spro dot net
For Win2000: To get the 4.3.1 curl dll to work with https you now need
to download the latest win32 curl library from http://curl.haxx.se and
snag the ca-bundle.crt file from the lib directory.
Then in your PHP script, add the following setopt line to the rest of
your curl_setopt commands:
curl_setopt($ch, CURLOPT_CAFILE, 'C:\Inetpub\ca-bundle.crt')
This worked for me and allowed me to discontinue using the
CURLOPT_SSL_VERIFYPEER set to zero hack.
------------------------------------------------------------------------
[2003-02-25 05:00:43] jason at hdev dot net
The line
curl_easy_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
does not work with the script with php 4.3.0
It just runs the script and doesn't do anything about the secure web
page!
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22379
--
Edit this bug report at http://bugs.php.net/?id=22379&edit=1