cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] Using certificate from memory

From: Itay Dagan <itay_at_yoggie.com>
Date: Sun, 28 Dec 2008 09:57:39 +0200 (IST)

I will
Thanks for the Tip :)

----- "Jean-Philippe Barette-LaPierre" <jpbarrette_at_gmail.com> wrote:
> From: "Jean-Philippe Barette-LaPierre" <jpbarrette_at_gmail.com>
> To: "cURLpp's mailing-list" <curlpp_at_rrette.com>
> Sent: Friday, December 26, 2008 6:41:27 PM (GMT+0200) Auto-Detected
> Subject: Re: [cURLpp] Using certificate from memory
>
> This is the mailing-list about the C++ wrapper around libcURL. You're question is libcURL related. You
> should ask your question here:
>
> http://cool.haxx.se/mailman/listinfo/curl-library
>
>
> On Thu, Dec 25, 2008 at 12:01 PM, Itay Dagan < itay_at_yoggie.com > wrote:
>

>
>
> Hi guys
> Hope you can help me with this issue ...
>
>
> I have these lines of code: ** loading and verify certificate from file path in my system. **
> ...
>
> int res;
>
> curl_easy_setopt(curl,CURLOPT_CAINFO, "C://server_verify.crt");
>
>
>
> curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
>
> curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, TRUE);
>
> ret = curl_easy_perform(curl);
>
> long sslresponseCode = 111;
> curl_easy_getinfo(curl, CURLINFO_SSL_VERIFYRESULT, &sslresponseCode);
>
> if (sslresponseCode != CURLE_OK)
> {
> curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &sslresponseCode);
> return false;
> }
>
>
> ...
>
> But I have a scenario which my certificate is not in the file but on memory
> I am reading the certificate into a buffer
> .
> My Q is ,
> Can I load the certificate to curl structure from memory , instead of using "curl_easy_setopt(curl,CURLOPT_CAINFO, "C://server_wrong.crt"); "
>
> Can you help me with that ?
>
> Thanks
>
> Itay
>
>
> _______________________________________________
> cURLpp mailing list
> cURLpp_at_rrette.com
> http://www.rrette.com/mailman/listinfo/curlpp
>
>
>
> _______________________________________________ cURLpp mailing list cURLpp@rrette.com http://www.rrette.com/mailman/listinfo/curlpp

_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2008-12-28

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET