<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 15 (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]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
h1
{mso-style-priority:9;
mso-style-link:"Heading 1 Char";
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:24.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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.post-date
{mso-style-name:post-date;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.post-subject
{mso-style-name:post-subject;}
span.Heading1Char
{mso-style-name:"Heading 1 Char";
mso-style-priority:9;
mso-style-link:"Heading 1";
font-family:"Times New Roman",serif;
mso-fareast-language:EN-AU;
font-weight:bold;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";
mso-fareast-language:EN-AU;}
span.n
{mso-style-name:n;}
span.o
{mso-style-name:o;}
span.s2
{mso-style-name:s2;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></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-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">Hi devs<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">I’m putting our Geonode 2.4 behind SSL to protect the passwords over the net.<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">Based on the
<a href="http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/ssl.html">
doco</a> I’ve written two ansible scripts, <a href="https://github.com/UNSW-CFRC/geonode_install/blob/master/install_geonode/10_generate_ssl_csr.yml">
one</a> to generate the key and CSR, <a href="https://github.com/UNSW-CFRC/geonode_install/blob/master/install_ssl_cert.yml">
the other</a> to install the certificate supplied by our university IT. I included the step to add the certificate to httplib2/cacerts.txt for python.<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">This works OK in general – the site itself shows as secure in Chrome.<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">However, I get errors when uploading a layer and saving metadata:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:15.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-AU">SSLHandshakeError at /layers/geonode:test_issue086a/metadata<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:7.5pt;margin-left:36.0pt">
<span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#666666;mso-fareast-language:EN-AU">[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">Any thoughts?<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">This is similar but not identical to the issue reported last year by Antoine Rolland (below).<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">Regards<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">Jonathan<o:p></o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.5pt;padding:0cm 0cm 1.0pt 0cm;background:white">
<p class="MsoNormal" style="background:white;border:none;padding:0cm"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span class="post-date"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#6A6A6A">Jun 06, 2016; 11:20pm</span></span><span class="apple-converted-space"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#6A6A6A"> </span></span><a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=user_nodes&user=379386" title=""View profile of Antoine ROLLAND" "><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#551A8B;mso-fareast-language:EN-AU;text-decoration:none"><img border="0" width="24" height="24" style="width:.25in;height:.25in" id="Picture_x0020_2" src="cid:image001.png@01D2C8DF.F41BF1E0" alt="Antoine ROLLAND"></span></a><span class="apple-converted-space"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"> </span></span><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black"><a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=user_nodes&user=379386"><span style="color:#551A8B">Antoine
ROLLAND</span></a><span class="apple-converted-space"> </span><span class="post-subject">SSL HandshakeError</span><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black">Hello everyone,<span class="apple-converted-space"> </span><br>
<br>
I'm using Geonode 2.4 stable version, and it's now running under SSL. After this change, part of the website is still working well, but I meet errors while editing metada (when I save), and also when I try to upload a new layer. This is the error I meet :<span class="apple-converted-space"> </span><br>
<br>
SSLHandshakeError at /layers/geonode:communes/metadata<span class="apple-converted-space"> </span><br>
[Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol<span class="apple-converted-space"> </span><br>
Request Method: POST<span class="apple-converted-space"> </span><br>
Request URL: <a href="https://aware.cirad.fr/layers/geonode:communes/metadata" target="_top">
<span style="color:#551A8B">https://aware.cirad.fr/layers/geonode:communes/metadata</span></a><br>
Django Version: 1.6.11<span class="apple-converted-space"> </span><br>
Exception Type: SSLHandshakeError<span class="apple-converted-space"> </span><br>
Exception Value: <br>
[Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol<span class="apple-converted-space"> </span><br>
Exception Location: /usr/lib/python2.7/dist-packages/httplib2/__init__.py in connect, line 1043<span class="apple-converted-space"> </span><br>
Python Executable: /usr/bin/python<span class="apple-converted-space"> </span><br>
Python Version: 2.7.6<span class="apple-converted-space"> </span><br>
Python Path: <br>
['/usr/lib/python2.7',<span class="apple-converted-space"> </span><br>
'/usr/lib/python2.7/plat-x86_64-linux-gnu',<span class="apple-converted-space"> </span><br>
'/usr/lib/python2.7/lib-tk',<span class="apple-converted-space"> </span><br>
'/usr/lib/python2.7/lib-old',<span class="apple-converted-space"> </span><br>
'/usr/lib/python2.7/lib-dynload',<span class="apple-converted-space"> </span><br>
'/usr/local/lib/python2.7/dist-packages',<span class="apple-converted-space"> </span><br>
'/usr/lib/python2.7/dist-packages',<span class="apple-converted-space"> </span><br>
'/usr/lib/python2.7/dist-packages/PILcompat',<span class="apple-converted-space"> </span><br>
'/usr/lib/pymodules/python2.7',<span class="apple-converted-space"> </span><br>
'/var/www']<span class="apple-converted-space"> </span><br>
Server time: lun, 6 Jui 2016 09:09:43 -0400<span class="apple-converted-space"> </span><br>
<br>
<br>
Also, it seems that the url of the website generated is wrong : a "/" is missing between "websitename" and "uploaded/thumbs" (for instance). I suppose it is a consequence of the error i meet.<span class="apple-converted-space"> </span><br>
<br>
Any help would be really appreciated<span class="apple-converted-space"> </span><br>
<br>
Thanks<span class="apple-converted-space"> </span><br>
<br>
Antoine Rolland<span class="apple-converted-space"> </span><br>
_______________________________________________<span class="apple-converted-space"> </span><br>
geonode-devel mailing list<span class="apple-converted-space"> </span><br>
<a href="http://osgeo-org.1560.x6.nabble.com/user/SendEmail.jtp?type=node&node=5270129&i=0" target="_top"><span style="color:#551A8B">[hidden email]</span></a><span class="apple-converted-space"> </span><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-devel" target="_top"><span style="color:#551A8B">http://lists.osgeo.org/mailman/listinfo/geonode-devel</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>