473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Need expert help with cURL & SSL on IIS

I've been pulling my hair out over this and I need some expert help.

I'm trying to access an XML API using cURL over SSL.

Here's the API address:

https://tps-test.voiceeclipse.com/cgi-bin/ve_xml.cgi

Here's what I'm doing:

$ch = curl_init(); // initialize curl handle
curl_setopt( $ch, CURLOPT_SSLVERSION, 2); <-- tried this, doesn't
help
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); <-- if I set this to
false, I get a message that no XML was received, but I've verified
that I *am* sending a valid XML stream.
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); <-- no effect whether
I use this or not
curl_setopt($ch, CURLOPT_URL, "https://tps-test.voiceeclipse.com/cgi-
bin/ve_xml.cgi"); // set url to post to
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a
variable
curl_setopt($ch, CURLOPT_TIMEOUT, 10); // times out after 10 seconds
curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlStream); // add POST fields
$xmlresult = curl_exec($ch); // run the whole process

Here's my error:

Error 60: SSL Certificate problem, verify that the CA cert is OK.
Details: error:1407E086:SSL routines:SSL2_SET_CERTIFICATE:certificate
verify failed

I don't really understand how this is supposed to work. The local
server has its own SSL certificate. I've also downloaded the
certificate for the voiceeclipse server and put that in the certs
folder. I've even directly specified that file using:
curl_setopt($ch, CURLOPT_CAINFO, "(full certificate path)"); but no
joy. I know I have the certificate in the right format (Base-64).

What else could be going wrong?

Help!!

Damon

Mar 9 '07 #1
0 2182

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil Powell | last post by:
I am having trouble retrieving URLs using curl for PHP whereby the URL requires a cookie to produce proper data. I wrote a wrapper class called Timer that will time the execution/download of a...
6
by: Shutdownrunner | last post by:
I want to store result of curl in a variable, which means to store a webpage in a variable in order to parse it later and get our some useful information. But unfortunately I'm not too experienced...
1
by: ^blib^ | last post by:
Hello there, Could someone help me understand why Bug #34927 was marked as bogus? http://bugs.php.net/bug.php?id=34927 I understand that the target server is most likely misconfigured. But...
6
by: admin | last post by:
Hi, I have a mysql box that has a private network ip. The old developer was running our web server on this machine but the company since retired the box and it is in a closet, still running, but...
4
by: Terry | last post by:
I'm using curl to invoke a php script on the same site/server. It works great, but if I call it again while it's still running, nothing happens. Why? Can that be fixed? Why use curl? To make...
1
by: devranger | last post by:
Hello, I am in the process of learning PHP CURL and in doing some test examples I am having some issues with CURL that I do not fully understand. I am doing a test to use CURL to post and return...
1
by: devranger | last post by:
I have used curl_setopt($ch, CURLOPT_POST, true); and curl_setopt($ch, CURLOPT_POSTFIELDS, $data); on post forms to retrun results, but what about a GET Form Method? How do you deal with these...
4
by: zorro | last post by:
Hello there, I can't figure out why is it that when i use an array for my postfields it doesn't work : this works curl_setopt($curl, CURLOPT_POSTFIELDS, "clown=bozo" ); this doesn't...
4
by: rottmanj | last post by:
I am working on a revamp of a previous application that I have written in coldfusion. The application deals with RETS data. The issue that I am having is with using the curl option HTTP_AUTH and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.