[gdal-dev] Need some help adding libCurl to GDAL
Paul Meems
bontepaarden at gmail.com
Mon May 23 10:50:14 EDT 2011
Even,
Thanks for your reply.
I understand the need for certificates but using certificates for a server
that doesn't require it makes it hard to access that server.
If I need to explain to my users to follow Tamas his blogspot to access the
server of their choice they go crazy.
I've tried your suggestion and patched port/cpl_http.cpp.
But I keep this error: "Protocol https not supported or disabled in libcurl"
I really feel I need to enable something else in GDAL but I have no idea
what.
As a workaround I copy curl.exe as well and use it to get my WFS though
https.
But of course that is not a solution. I'm still wondering if anybody has
some experience with GDAL + WFS driver and https.
Thanks,
Paul
2011/5/23 Even Rouault <even.rouault at mines-paris.org>
> Paul,
>
> as Tamas suggested, I'd *strongly* encourage you to study
> http://szekerest.blogspot.com/2010/12/daily-built-binary-packages-for.html,
> particularly section 4.
>
> The error you get is a sign that the certificate isn't recognized by curl
> and
> the fact you need the -k flag of curl.exe just instructs it to bypass the
> standard security checks.
>
> Or, you could try to patch port/cpl_http.cpp and add the following line
> around
> line 299. This should have the same effect of the -k flag.
>
> curl_easy_setopt(http_handle, CURLOPT_SSL_VERIFYHOST, FALSE);
>
> The UNSAFESSL option of the WMS driver basically does the above.
>
> >
> > Thanks,
> >
> > Paul
> >
> >
> > 2011/5/22 Jeff McKenna <jmckenna at gatewaygeomatics.com>
> >
> > > On 11-05-19 2:32 PM, Even Rouault wrote:
> > >
> > >> 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 should also note that MS4W includes SSL support, and comes with
> Apache
> > > configured and ready-to-go pointing to the necessary files. Some notes
> on
> > > this exist in the included README:
> > >
> >
>
> http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#g-certificates-for-https-with-wms-wfs-servers
> > >
> > > -jeff
> > >
> > >
> > > --
> > > Jeff McKenna
> > > MapServer Consulting and Training Services
> > > http://www.gatewaygeomatics.com/
> > >
> > >
> > >
> > > _______________________________________________
> > > 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/20110523/3a15a593/attachment.html
More information about the gdal-dev
mailing list