473,804 Members | 2,986 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_SSLVERS ION, 2); <-- tried this, doesn't
help
curl_setopt($ch , CURLOPT_SSL_VER IFYPEER, 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_VER IFYHOST, false); <-- no effect whether
I use this or not
curl_setopt($ch , CURLOPT_URL, "https://tps-test.voiceeclip se.com/cgi-
bin/ve_xml.cgi"); // set url to post to
curl_setopt($ch , CURLOPT_RETURNT RANSFER, 1); // return into a
variable
curl_setopt($ch , CURLOPT_TIMEOUT , 10); // times out after 10 seconds
curl_setopt($ch , CURLOPT_POSTFIE LDS, $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_S ET_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 2220

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

Similar topics

0
2955
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 remote URL and it uses curl as its means of obtaining the URL: class Timer extends View { /** * @access private
6
10326
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 in C and I'm making some stupid mistake. Could someone help me solve it? #include <string.h> #include <curl/curl.h> size_t write_data(const char *buffer, size_t size, size_t nmemb, char *userp)
1
1863
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 why is that a problem for PHP/Curl and not curl running in a shell? Thanks,
6
1982
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 sad and alone, aliased as oldserver.mycompany.com. Now I am finding out that I need to use some of the funcitonality in the scripts that are on the old box.
4
5569
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 it run in the background. My host can't use exec nor flush the output to the browser. But, I can use curl and timeout.
1
1650
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 results from "http://powersports.honda.com/dealer_locator/dealer_locator.asp" However it does not appear to be returning results from the CURL post action. What CURL appears to be doing is finding the page...
1
1845
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 with curl? The same commands? The particular instance I am dealing with is a store locator and it is not as easy as just calling the url with the variables becasue it runs some script behind the scene that does a bunch of calculations for...
4
8053
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 curl_setopt($curl, CURLOPT_POSTFIELDS, array('clown'=>'bozo') );
4
12082
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 CURLAUTH_DIGEST. When attempting to authenticate against the server. No matter what I try, my authentication always fails. I have made sure to validate the auth information. In my testings, I have also verified that curl can authenticate via the...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10578
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10321
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7620
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.