[asterisk-users] CURL function with SSL

David Gibbons dave at videon-central.com
Fri Aug 14 10:26:01 CDT 2009


You probably want to set the option

CURLOPT_SSL_VERIFYPEER to FALSE.

Especially with chained certificates (cheapos from godaddy, etc), I have had lots of trouble with CURL being able to validate a cert. That's probably because I didn't tell it where the root certs were... but either way.

-Dave

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Wenbin Zhang
Sent: Friday, August 14, 2009 11:23 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] CURL function with SSL

Tilghman Lesher wrote:
> On Friday 14 August 2009 09:04:12 Wenbin Zhang wrote:
>
>> Hi all,
>>     I hope you guys can help me out. I got a problem with using function
>> CURL. I
>> did Set(CURL=${CURL(URL)}); but the URL I was using is https, so when I
>> generated the call, the CURL function could not get access to that
>> https://URL server. What should I do with it? Thank you very much
>>
>
> The most likely problem is that your libcurl library was not compiled with
> SSL support.  If you're installing from source, you'll need to recompile,
> adding SSL support to the configure options.  If you're installing from a
> package, there's likely another package that you need to install for SSL
> support (e.g. in Ubuntu, you need to install either libcurl4-gnutls-dev or
> libcurl4-openssl-dev).
>
>
Thank you very much for your help Tilghman. But I have one more question
here. After I install libcurl4-openssl-dev, do I have to do some
configurations about it? Or do I have to let CURL know the certificate
that https://URL is using? Please tell me some details if you can. Thank
you very much.

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list