<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Breno and Naveen – can you please fix the syntax of the keys to use base64url encoding?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">You should also plan to migrate to 2048 bit keys, but I understand that this is a larger issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for identifying these issues, James.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">                                                            -- Mike<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><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""> Manger, James [mailto:James.H.Manger@team.telstra.com]
<br>
<b>Sent:</b> Monday, March 17, 2014 11:48 PM<br>
<b>To:</b> tbray@textuality.com<br>
<b>Cc:</b> openid-security@lists.openid.net; Mike Jones<br>
<b>Subject:</b> RE: [Openid-specs-ab] We have published a discovery doc & JWK endpoint<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-AU">Tim,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<pre><span lang="EN-AU" style="color:black">>> Start at <a href="https://accounts.google.com/.well-known/openid-configuration">https://accounts.google.com/.well-known/openid-configuration</a><o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">>><o:p> </o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">>> Hope it works...<o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<pre><span lang="EN-AU" style="color:black">> Looks good.  I added this to the interop info at  <a href="http://osis.idcommons.net/wiki/OC5:Google_Deployment.">http://osis.idcommons.net/wiki/OC5:Google_Deployment.</a><o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">Actually it look bad.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">That configuration includes<o:p></o:p></span></p>
<pre><span lang="EN-AU" style="color:black">"jwks_uri": "<a href="https://www.googleapis.com/oauth2/v2/certs">https://www.googleapis.com/oauth2/v2/certs</a>",<o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-AU">That JWK has two key. Calling raw keys “certs” is a curious choice.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">Both keys are wrong.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">They are 1024-bit RSA keys. The JWA spec says they MUST be 2048-bit or larger.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">The "n" members (modulus) are base64-encoded, when they should be base64url-encoded. Note the presence of / and +.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">They also start (after base64-decoding) with a leading 0x00 byte, whereas the spec says "n" is unsigned and “MUST utilize the minimum number of octets to represent the value”. There should be 1024/6=171 b64 chars, instead
 of (8+1024)/6=172.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><a href="http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-23#section-6.3.1.1">http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-23#section-6.3.1.1</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black"><a href="https://www.googleapis.com/oauth2/v2/certs">https://www.googleapis.com/oauth2/v2/certs</a>:<o:p></o:p></span></p>
<pre><span lang="EN-AU" style="color:black">{<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black"> "keys": [<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">  {<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "kty": "RSA",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "alg": "RS256",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "use": "sig",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "kid": "36239103c08ce207082b721dfbc80bc8d800bff2",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "n": "AKunY03zz/oJonovVNJjnjscjScnqtdtMEmnExJShJkoh8KjyHtH+TAldA7jrpQHDJnX81IxbkmH1JQMkgSKN4qVvJTqvA9RQFc6phN+7HU4JfPfpkYb3Jbnl35w4CXJkZoyXucAj4qw87szAgt2WBLrFoT08PjONmii5cmFR6BT",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "e": "AQAB"<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">  },<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">  {<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "kty": "RSA",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "alg": "RS256",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "use": "sig",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "kid": "7e18e2970941338884c88f2e789d7d8c519cd919",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "n": "ALjEqP0OUMivrQUIPj39+ckmE3KBtDDNdJZLCxFRGT2gUETsbc/x+zUit5xvKWN4DbSlVCwHdvIQcEgTdG+HZTrCoPDkoiOW+DxX4j+IkpiS1hy3YL9gHbBD4J75dGGRTfavZ77fu4E0/a/3s22rOda21ZQlUhlUZtyUxUGpxxSj",<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">   "e": "AQAB"<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">  }<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black"> ]<o:p></o:p></span></pre>
<pre><span lang="EN-AU" style="color:black">}<o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">--<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">James Manger<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
</div>
</body>
</html>