Well after after banging my head a little bit the answer fell out. With the newer versions of curl, it seems that you have to use the ca-bundle.crt file for curl to be able to verify certificates. I had to put the following statement into my scripts.
curl_setopt($ch, CURLOPT_CAINFO, 'drive:\pathto\ca-bundle.crt'); Still have to modify all my scripts that are using curl, but I feel that it is better than setting it to not verify. Robert "Robert Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > More information on below. I added the Curl_Verbose statement to my test > script and this is what it displayed. > > SSL: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate > verify failed* Closing connection #0 > > > "Robert Smith" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Windows 2000 > > IIS 5 > > > > I recently upgraded to php 4.3.1 from 4.2. Curl was working before the > > upgrade. I do have the curl extension uncommented in php.ini. php_info > says > > that curl is enabled. I wrote a simple script to test curl. > > > > <? > > print("Hello World"); > > error_reporting(E_ALL); > > $ch = curl_init(); > > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > > curl_setopt($ch, CURLOPT_URL "any https site"); > > $response curl_exec ($ch); > > curl_close($ch); > > print($response); > > print("GoodBye"); > > ?> > > > > I do not get any errors when I run the script. Simply a blank page with > my > > print statement. I put the print statements in to make sure the script > was > > running all the way through. It will display any page that is not https. > I > > can also insert CURLOPT_SSL_VERIFYPEER, 0 and it will pull up https site. > I > > am tring to avoid having to use this statement because it would take some > > time to go back and add this to all our shopping carts that are using > curl. > > > > Thanks for any input > > > > Robert Smith > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php