| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: Using certificate from memory - Mutal authentication
From: Itay Dagan <itay_at_yoggie.com>
Date: Wed, 31 Dec 2008 11:25:24 +0200 (IST)
Thanks Daniel
I am now trying to do it on the other way too (mutual authentication)
Can you advise on that ?
cheers
Itay
--------------------------------------------------------------------------------------------------------------
One little problem would be to make it SSL library agnostic so that it'd be possible to make the feature work with other libs than OpenSSL as well.
----- Original Message -----
Hi Jeff
finally I got it.
I think there should be somthing more friendly though (maybe there is ... and I dont know about it )
url_easy_setopt(curl, CURLOPT_SSLVERIFY_FROM_MEM, buf);
and add it to X509 sturct.
Does it exist ?
Thanks again for the link.
Itay
----- Original Message -----
Hi Jeff
Thanks for the help
I tried to use both advise I got from you and open-ssl guys
using this code :
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl,CURLOPT_SSL_CTX_FUNCTION, &Connector::loadFromMemory); //suppose to load the certificate
..."
It behaves like no certificate has been uploaded to the database (looking for a file path ---> ret = 60)
It seems I am still doing something that makes it look for the certificate in a file though I already upload it from the memory
here is the function I am using (with a great help from opsn-ssl forum) :
//************************************************************
#define retFree(x) do { \
if(!buf || bufLen < 1)
cert = X509_new();
if(!BIO_write(bp, buf, bufLen))
if(!BIO_write(bp, (char *) buf, bufLen))
BIO_free(bp);
//************************************************************
thanks for the help :)
Itay
----- Original Message -----
On Sun, Dec 28, 2008 at 1:56 AM, Itay Dagan <itay_at_yoggie.com> wrote:
> Can I load the certificate to curl structure from memory , instead of using
This might help:
- Jeff
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info