hixie: Add a worthless <keygen> example. (whatwg r3773)

hixie: Add a worthless <keygen> example. (whatwg r3773)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2942&r2=1.2943&f=h
http://html5.org/tools/web-apps-tracker?from=3772&to=3773

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2942
retrieving revision 1.2943
diff -u -d -r1.2942 -r1.2943
--- Overview.html 9 Sep 2009 06:43:02 -0000 1.2942
+++ Overview.html 9 Sep 2009 07:36:12 -0000 1.2943
@@ -31979,7 +31979,25 @@
   user for download; this certificate, once downloaded and stored in
   the key store along with the private key, can then be used to
   authenticate to services that use SSL and certificate
-  authentication.<h4 id="the-output-element"><span class="secno">4.10.12 </span>The <dfn><code>output</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><dl class="element"><dt>Categories</dt>
+  authentication.</p><!-- how does the UA know which private key is associated with a
+  certificate it gets back after the server has taken the public key
+  created by <keygen> and turned it into a client cert? --><div class="example">
+
+   <p>To generate a key pair, add the private key to the user's key
+   store, and submit the public key to the server, markup such as the
+   following can be used:</p>
+
+   <pre>&lt;form action="processkey.cgi" method="post" enctype="multipart/formdata"&gt;
+ &lt;p&gt;&lt;keygen name="key"&gt;&lt;/p&gt;
+ &lt;p&gt;&lt;input type=submit value="Submit key..."&gt;
+&lt;/form&gt;</pre>
+
+   <p>The server will then receive a form submission with a packaged
+   RSA public key as the value of "<code title="">key</code>". This
+   can then be used for various purposes, such as generating a client
+   certificate, as mentioned above.</p>
+
+  </div><h4 id="the-output-element"><span class="secno">4.10.12 </span>The <dfn><code>output</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><dl class="element"><dt>Categories</dt>
    <dd><a href="#flow-content">Flow content</a>.</dd>
    <dd><a href="#phrasing-content">Phrasing content</a>.</dd>
    <dd><a href="#category-listed" title="category-listed">Listed</a> and <a href="#category-reset" title="category-reset">resettable</a> <a href="#form-associated-element">form-associated element</a>.</dd>

Received on Wednesday, 9 September 2009 07:37:12 UTC