cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Inject a PEM certificate using CURLOPT_SSL_CTX_FUNCTION

From: Oscar Koeroo <okoeroo_at_nikhef.nl>
Date: Sat, 13 Apr 2013 19:08:17 +0200

Taiki <taiki_at_rakshata.com> schreef:

>Hello,
>I'm looking for a way to inject a certificate to libcURL.
>I'm actually using CURLOPT_CAINFO but I've to create the file, then use
>
>it, then delete it and I would rather like to use
>CURLOPT_SSL_CTX_FUNCTION.
>My problem is that the example available use the PKCS12 format and, as
>I
>don't have any file like this, I can't analyse the way this code work.
>Does anyone have a code using this feature or an example exploiting a
>PEM file?
>
>Regards
>
>Taiki

Did you see this example?
http://curl.haxx.se/libcurl/c/cacertinmem.html

Regards

Oscar

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