cURL / Mailing Lists / curl-library / Single Mail


libcurl and SSL

From: Ben Greear <>
Date: Fri, 06 May 2005 13:07:09 -0700


I'm trying to support 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

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 "", 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);
       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);
       return -1;

Any ideas what I might be doing wrong?


Ben Greear <>
Candela Technologies Inc
Received on 2005-05-06