libcurl ssl connection problem

Bug #1417024 reported by jvdw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curl (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I try to connect to an HTTP server with TLS, with the following options in the C code:

    curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, "PEM");
    curl_easy_setopt(curl, CURLOPT_SSLCERT,client_pem);
    curl_easy_setopt(curl, CURLOPT_SSLKEYTYPE, "PEM");
    curl_easy_setopt(curl, CURLOPT_SSLKEY, ssl_key);
    curl_easy_setopt(curl, CURLOPT_CAINFO, ca_file);
    curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
    curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER,1L);

I get connection problems. Linking instead with a newer version of libcurl (obtained from Github) doesn't give this error. Also, doing the request by hand (with curl, the binary) with the same keys/certs/etc does not give this error.

System info:

Description: Ubuntu 14.04.1 LTS
Release: 14.04

Package info:

libcurl4-openssl-dev:
  Installed: (none)
  Candidate: 7.35.0-1ubuntu2.3
  Version table:
     7.35.0-1ubuntu2.3 0
        500 http://nl.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     7.35.0-1ubuntu2 0
        500 http://nl.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.