cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl with client ssl certificate

From: Chris Baylis <>
Date: Sun, 19 Aug 2012 13:48:29 +1000

> Does your cert.pem contain the chain of CA certs that signed your client certificate?

Thank you very much for your reply. No, they are self signed. cert.pem
was generated from a .p12 file, in turn generated from a self signed
my.key and my.crt. (viewing it as text reveals an public and private

> You have a working command-line already, so you can use the --libcurl option to get the equivalent source file (with the exception of formpost stuff as mentioned in the man page):
> curl --libcurl myCurlSsl.c -w -E cert.pem

Looks like a handy option. However I havn't been able to get it to
produce anything meaningful from it. Beyond the default http opts, the
only relavent option (in the commented out section) is
CURLOPT_SSLCERT. By the way -vv was a typo on my part i meant
-v(--VERBOSE) just so I can debug this issue.

I've had a fairly long go at this before bothering this list again.
But I must be missing something fundamental in the api. As this works
just fine as a curl command line.
List admin:
Received on 2012-08-19