Hi Paul,<br><br>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:<br><a href="http://szekerest.blogspot.com/2010/12/daily-built-binary-packages-for.html">http://szekerest.blogspot.com/2010/12/daily-built-binary-packages-for.html</a><br>
<br>Hope that helps,<br><br>Tamas<br><br><br><br><br><div class="gmail_quote">2011/5/20 Paul Meems <span dir="ltr"><<a href="mailto:bontepaarden@gmail.com">bontepaarden@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks Even,<br><br>I've been mailing with Tamas already.<br>I want to build GDAL myself because we want to add additional libraries as libKML, SpatiaLite and PostGIS.<br><br>When I do <span style="font-family:courier new,monospace">curl.exe -V</span> I get<br>
<span style="font-family:courier new,monospace">curl 7.21.6 (i386-pc-win32) libcurl/7.21.6 OpenSSL/1.0.0d libssh2/1.2.8</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp s</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">ftp smtp smtps telnet tftp</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Features: AsynchDNS Largefile NTLM SSL</span><br>
<br>When I do <span style="font-family:courier new,monospace">curl <a href="https://my.server.com" target="_blank">https://my.server.com</a></span> I get <br><span style="font-family:courier new,monospace">curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed</span><br style="font-family:courier new,monospace"><br>When I do <span style="font-family:courier new,monospace">curl <b>-k</b> <a href="https://my.server.com" target="_blank">https://my.server.com</a></span> I get the result I want.<br>
So curl is properly configured.<br><br>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?<div class="im"><br><br>Thanks,<br><br>Paul<br>
<br><br><div>
<span style="font-size:13.3px;font-family:Verdana, Arial, Helvetica, sans-serif"><div style="border:1px solid #e5e5e5;background-color:#f8f8f8;padding:0.8em 0.8em 0.3em 0.8em"><div style="margin:0 0 8px 0"><p style="margin:0">
<span><b><img src="" style="float:left;margin-left:5px;margin-right:5px" alt="" height="120" width="160">Paul Meems </b><br><span>Release manager, configuration manager</span><br>
<span>and forum moderator of MapWindow GIS.</span><br><a href="http://www.mapwindow.org/" target="_blank"><span>www.mapwindow.org</span></a><br><br><span>Owner of MapWindow.nl - Support for</span><br><span>Dutch speaking users.</span><br>
<a href="http://www.mapwindow.nl/" target="_blank"><span>www.mapwindow.nl</span></a><br></span></p>
<p style="margin:0"><b><br></b></p></div></div><img src="" height="1" width="1"></span></div><br><br><br></div><div><div></div><div class="h5"><div class="gmail_quote">
2011/5/19 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le jeudi 19 mai 2011 10:22:08, Paul Meems a écrit :<br>
<div>> Hi List,<br>
><br>
> I'm still working on Win7 with VS2008 and I try to add libcurl to GDAL so<br>
> we can use the new WFS driver.<br>
> Two days ago I already succeeded in compile just libcurl and add it to<br>
> GDAL. But then the WFS driver doesn't work with https links.<br>
><br>
> So yesterday I've been trying for almost 10 hours to get libcurl, openssl<br>
> and libssh to compile together.<br>
> I'm using<br>
> <a href="http://curl.haxx.se/libcurl/c/Using-libcurl-with-SSH-support-in-Visual-Stud" target="_blank">http://curl.haxx.se/libcurl/c/Using-libcurl-with-SSH-support-in-Visual-Stud</a><br>
</div>> io-2008.pdfas a guide and downloaded and installed:<br>
<div>> * ActivePerl<br>
> * OpenSSL<br>
> * libSSH2<br>
> * Netwide Assembler<br>
<br>
</div>Did you try Tamas' builds ? It seems they have SSL support according to his<br>
blog entry :<br>
<br>
<a href="http://szekerest.blogspot.com/2010/12/daily-built-binary-packages-for.html" target="_blank">http://szekerest.blogspot.com/2010/12/daily-built-binary-packages-for.html</a><br>
<div><div></div><div><br>
><br>
> I've got the necessary files now. I also did what was suggested in Appendix<br>
> A of the PDF.<br>
><br>
> But when I do ogrinfo -ro WFS:<a href="https://my.testserver.com" target="_blank">https://my.testserver.com</a> I get this<br>
> response: Error returned by server : Protocol https not supported or<br>
> disabled in libcurl<br>
><br>
> Today I tried checking if libcurl is configured properly, but I'm lost in<br>
> the non-windows makefile and perl files.<br>
> But because I followed the guide I assume libcurl is correctly build.<br>
><br>
> Most likely I need to make additional changes to my nmake.opt for GDAL.<br>
> Currently I have this:<br>
> CURL_DIR = $(GDAL_HOME)\..\cUrl<br>
> CURL_INC = -I$(CURL_DIR)/include<br>
> CURL_LIB = $(CURL_DIR)/lib/DLL-Release/libcurl_imp.lib wsock32.lib<br>
> wldap32.lib winmm.lib<br>
><br>
> I'm also not aware what is best: using a dynamic or static library, but<br>
> that is a more general question ;)<br>
><br>
> So please advice me how to enable https.<br>
><br>
> Thanks,<br>
><br>
> Paul<br>
><br>
><br>
> *Paul Meems *<br>
> Release manager, configuration manager<br>
> and forum moderator of MapWindow GIS.<br>
> <a href="http://www.mapwindow.org" target="_blank">www.mapwindow.org</a><br>
><br>
> Owner of MapWindow.nl - Support for<br>
> Dutch speaking users.<br>
> <a href="http://www.mapwindow.nl" target="_blank">www.mapwindow.nl</a><br>
><br>
</div></div>> *<br>
> *<br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>