[gdal-dev] Need some help adding libCurl to GDAL

Tamas Szekeres szekerest at gmail.com
Fri May 20 04:48:29 EDT 2011


Hi Paul,

You may have to set up a certificate file (containing the trusted domains)
to make curl + SSL work properly. I've already wrote a blogpost about this
at:
http://szekerest.blogspot.com/2010/12/daily-built-binary-packages-for.html

Hope that helps,

Tamas




2011/5/20 Paul Meems <bontepaarden at gmail.com>

> Thanks Even,
>
> I've been mailing with Tamas already.
> I want to build GDAL myself because we want to add additional libraries as
> libKML, SpatiaLite and PostGIS.
>
> When I do curl.exe -V I get
> curl 7.21.6 (i386-pc-win32) libcurl/7.21.6 OpenSSL/1.0.0d libssh2/1.2.8
> Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp
> scp s
> ftp smtp smtps telnet tftp
> Features: AsynchDNS Largefile NTLM SSL
>
> When I do curl https://my.server.com I get
> curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
> error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
> failed
>
> When I do curl *-k* https://my.server.com I get the result I want.
> So curl is properly configured.
>
> Do I need to change something in my nmake.opt of GDAL or do I need to use
> ogrinfo and ogr2ogr in a different way so I can pass the -k option?
>
>
> Thanks,
>
> Paul
>
>
>  *Paul Meems *
> Release manager, configuration manager
> and forum moderator of MapWindow GIS.
> www.mapwindow.org
>
> Owner of MapWindow.nl - Support for
> Dutch speaking users.
> www.mapwindow.nl
>
> *
> *
>
>
>
> 2011/5/19 Even Rouault <even.rouault at mines-paris.org>
>
>> Le jeudi 19 mai 2011 10:22:08, Paul Meems a écrit :
>> > Hi List,
>> >
>> > I'm still working on Win7 with VS2008 and I try to add libcurl to GDAL
>> so
>> > we can use the new WFS driver.
>> > Two days ago I already succeeded in compile just libcurl and add it to
>> > GDAL. But then the WFS driver doesn't work with https links.
>> >
>> > So yesterday I've been trying for almost 10 hours to get libcurl,
>> openssl
>> > and libssh to compile together.
>> > I'm using
>> >
>> http://curl.haxx.se/libcurl/c/Using-libcurl-with-SSH-support-in-Visual-Stud
>> > io-2008.pdfas a guide and downloaded and installed:
>> > * ActivePerl
>> > * OpenSSL
>> > * libSSH2
>> > * Netwide Assembler
>>
>> Did you try Tamas' builds ? It seems they have SSL support according to
>> his
>> blog entry :
>>
>> http://szekerest.blogspot.com/2010/12/daily-built-binary-packages-for.html
>>
>> >
>> > I've got the necessary files now. I also did what was suggested in
>> Appendix
>> > A of the PDF.
>> >
>> > But when I do ogrinfo -ro WFS:https://my.testserver.com I get this
>> > response: Error returned by server : Protocol https not supported or
>> > disabled in libcurl
>> >
>> > Today I tried checking if libcurl is configured properly, but I'm lost
>> in
>> > the non-windows makefile and perl files.
>> > But because I followed the guide I assume libcurl is correctly build.
>> >
>> > Most likely I need to make additional changes to my nmake.opt for GDAL.
>> > Currently I have this:
>> > CURL_DIR =    $(GDAL_HOME)\..\cUrl
>> > CURL_INC = -I$(CURL_DIR)/include
>> > CURL_LIB = $(CURL_DIR)/lib/DLL-Release/libcurl_imp.lib wsock32.lib
>> > wldap32.lib winmm.lib
>> >
>> > I'm also not aware what is best: using a dynamic or static library, but
>> > that is a more general question ;)
>> >
>> > So please advice me how to enable https.
>> >
>> > Thanks,
>> >
>> > Paul
>> >
>> >
>> > *Paul Meems *
>> > Release manager, configuration manager
>> > and forum moderator of MapWindow GIS.
>> > www.mapwindow.org
>> >
>> > Owner of MapWindow.nl - Support for
>> > Dutch speaking users.
>> > www.mapwindow.nl
>> >
>> > *
>> > *
>>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110520/88a0bcaf/attachment.html


More information about the gdal-dev mailing list