cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to load PEM certificate together with private key in libcurl using mbedtls

From: Mindaugas Jaraminas <minde.j_at_gmail.com>
Date: Mon, 4 Jan 2016 15:36:56 +0200

Hello

Maybe some of you have an example how to do it?

I have found an example how to do it with openSSL
http://curl.haxx.se/libcurl/c/usercertinmem.html but according to
documentation this approach is for OpenSSL or wolfSSL/CyaSSL only.

Now I am loading certificates from files like this:

curl_easy_setopt(curl_handle, CURLOPT_SSLCERT, certificate);
curl_easy_setopt(curl_handle, CURLOPT_SSLKEY, private_key);

Witch in not OK in my use case.

-- 
Best regards
MJ

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2016-01-04