curl-library
libcurl and SSL
Date: Fri, 06 May 2005 13:07:09 -0700
Hello!
I'm trying to support https://www.foo.com URLs in my tool
that uses libcurl.
So far, I'm not having a whole lot of luck.
I have cross-compiled libcurl, my app, and the latest openssl with mingw to be
run on my Windows machine. I copied the ca-bundle.crt from
/usr/share/ssl/certs/ca-bundle.crt on my FC3 Linux machine to the windows
machine.
I tried setting the CURLOPT_SSL_VERIFYPEER to zero and 1, and neither
changes affect the error message I get from libcurl:
unable to set private key file: 'ca-bundle.crt'
I am trying to grab "https://www.thawte.com", by the way.
My source code in this section looks like:
VLOG << "Setting SSL Cert File Name to -:" << ssl_cert_fname << ":-\n";
if ((rv = curl_easy_setopt(curl, CURLOPT_SSLCERT, (const char*)(ssl_cert_fname))) != CURLE_OK) {
VLOG_ERR(VLOG << "CURL setup error, SSLCERT, err: " << rv << endl);
stopOnError(getCurlErrBuffer());
return -1;
}
long v = !!flags.get(24);
VLOG << "Setting Verify SSL Server to: " << v << endl;
if ((rv = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, v)) != CURLE_OK) {
VLOG_ERR(VLOG << "CURL setup error, VERIFYPEER, err: " << rv << endl);
stopOnError(getCurlErrBuffer());
return -1;
}
Any ideas what I might be doing wrong?
Thanks,
Ben
-- Ben Greear <greearb_at_candelatech.com> Candela Technologies Inc http://www.candelatech.comReceived on 2005-05-06