<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=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:宋体;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:宋体;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.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="ZH-CN" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I need your help on k8s api tls_enabled mode.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here’s my patch <a href="https://review.openstack.org/232421">
https://review.openstack.org/232421</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It is always failed on gate, but it works in my setup.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Debug more I found that the ca cert return api return length with difference:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">On my setup</span><span style="font-family:宋体">:</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US">10.238.157.49 - - [21/Oct/2015 19:16:17] "POST /v1/certificates HTTP/1.1" 201
<b><span style="color:red">3360<o:p></o:p></span></b></span></i></p>
<p class="MsoNormal"><b><i><span lang="EN-US" style="color:red">…<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><i><span lang="EN-US">10.238.157.49 - - [21/Oct/2015 19:16:17] "GET /v1/certificates/d4bf6135-a3d0-4980-a785-e3f2900ca315 HTTP/1.1" 200
<b><span style="color:red">1357</span></b><o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">On gate:<o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US"><o:p> </o:p></span></i></p>
<p class="MsoNormal" align="left" style="text-align:left"><i><span lang="EN-US" style="color:black">127.0.0.1 - - [21/Oct/2015 10:59:40] "POST /v1/certificates HTTP/1.1" 201
</span></i><b><i><span lang="EN-US" style="color:red">3352<o:p></o:p></span></i></b></p>
<pre><i><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black">127.0.0.1 - - [21/Oct/2015 10:59:40] "GET /v1/certificates/a9aa1bbd-d624-4791-a4b9-e7a076c8bf58 HTTP/1.1" 200 </span></i><i><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:red">1349</span></i><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:red"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:red"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="color:red">Misses 8 Bit.<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:red"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="color:black">I also print out the cert file content, but the length of both on gate and my setup are same.<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">But failed on gate due to SSL exception.<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">Does anyone know what will be the root cause?<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black"><o:p> </o:p></span></pre>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">BR, Eli(Li Yong)Qiao<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>