<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Re: [mapserver-users] WFS layer and https</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks Mike.&nbsp; We actually narrowed it down to a problem with
MS4W.&nbsp; It appears that MS4W&#8217;s libcurl does not include the root certificate
authority bundle.&nbsp; I&#8217;ll need to file a bug with MS4W.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks again for your help.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Brian Fischer</span><span style='font-size:11.0pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Houston Engineering, Inc.</span><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Maple Grove, MN</span><span style='font-size:11.0pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>(763) 493-4522</span><span style='font-size:11.0pt;font-family:
"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Michael Smith
[mailto:michael.smith@usace.army.mil] <br>
<b>Sent:</b> Thursday, April 09, 2009 9:31 AM<br>
<b>To:</b> Fischer, Brian; mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapserver-users] WFS layer and https<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Brian,<br>
<br>
You need the servers certificate in your cURL certificate directory. Where to
put it, I think, depends on your OS. The default in the Unix OS&#8217;s is
/usr/share/ssl/certs.<br>
<br>
Mike<br>
<br>
<br>
-- <br>
Michael Smith<br>
RSGIS Center<br>
ERDC - CRREL<br>
US Army Corps of Engineers<br>
<br>
<br>
<br>
<br>
<br>
On 4/9/09 &nbsp;10:09 AM, &quot;Fischer, Brian&quot; &lt;<a
href="bfischer@houstoneng.com">bfischer@houstoneng.com</a>&gt; wrote:</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I&#8217;m
trying to use a WFS that is coming from a SSL (https) server. &nbsp;Is it
possible to use a WFS from an https connection? &nbsp;Here is the error I am
getting.<br>
&nbsp;<br>
&lt;HTML&gt;<br>
&lt;HEAD&gt;&lt;TITLE&gt;MapServer Message&lt;/TITLE&gt;&lt;/HEAD&gt;<br>
&lt;!-- MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
--&gt;<br>
&lt;BODY BGCOLOR=&quot;#FFFFFF&quot;&gt;<br>
msDrawMap(): Image handling error. Failed to draw layer named
&amp;#39;obs&amp;#39;.<br>
msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -60 downloading
WFS layer obs<br>
msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl
error code 60 (SSL certificate problem, verify that the CA cert is OK. Details:<br>
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed) for <a
href="https://www.sharedgeo.org/datasets/RRV/maps/noaa/noaa.map?mode=ows&amp;amp;&amp;amp;REQUEST=GetFeature&amp;amp;VERSION=1.0.0&amp;amp;SERVICE=WFS&amp;amp;TYPENAME=obs&amp;amp;BBOX=346334.183773962,5034450.028,903297.375226037,5434570.553">https://www.sharedgeo.org/datasets/RRV/maps/noaa/noaa.map?mode=ows&amp;amp;&amp;amp;REQUEST=GetFeature&amp;amp;VERSION=1.0.0&amp;amp;SERVICE=WFS&amp;amp;TYPENAME=obs&amp;amp;BBOX=346334.183773962,5034450.028,903297.375226037,5434570.553</a><br>
&lt;/BODY&gt;&lt;/HTML&gt;<br>
&nbsp;<br>
Thanks,<br>
Brian<br>
&nbsp;<br>
</span><b><span style='font-size:11.0pt;font-family:"Arial","sans-serif"'>Brian
Fischer,</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>
</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>CFM<br>
GIS Project Manager<br>
</span><b><i><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#005B45'>Houston Engineering, Inc.</span></i></b><span style='font-size:
11.0pt;font-family:"Arial","sans-serif"'> </span><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>|</span><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif"'> </span><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:#005B45'>Leave Nothing to ChanceTM<br>
</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>6901
East Fish Lake Road, Suite 140<br>
Maple Grove, MN 55369<br>
Phone: &nbsp;763.493.4522 / Fax: &nbsp;763.493.5572<br>
Email: <span style='color:blue'><a href="bfischer@houstoneng.com">bfischer@houstoneng.com</a></span></span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> &lt;<a
href="mailto:bfischer@houstonengineeringinc.com">mailto:bfischer@houstonengineeringinc.com</a>&gt;
<br>
</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Website:</span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>www.houstoneng.com</span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> &lt;<a
href="http://www.houstonengineeringinc.com/">http://www.houstonengineeringinc.com/</a>&gt;
&nbsp;<br>
&nbsp;<o:p></o:p></span></p>

<div class=MsoNormal align=center style='margin-left:.5in;text-align:center'><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>

<hr size=3 width="95%" align=center>

</span></div>

<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:Consolas'>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></span><o:p></o:p></p>

</div>

</body>

</html>