[html5] r3773 - [e] (0) Add a worthless <keygen> example.

whatwg at whatwg.org whatwg at whatwg.org
Wed Sep 9 00:40:28 PDT 2009


Author: ianh
Date: 2009-09-09 00:40:25 -0700 (Wed, 09 Sep 2009)
New Revision: 3773

Modified:
   index
   source
Log:
[e] (0) Add a worthless <keygen> example.

Modified: index
===================================================================
--- index	2009-09-09 06:47:17 UTC (rev 3772)
+++ index	2009-09-09 07:40:25 UTC (rev 3773)
@@ -36017,8 +36017,31 @@
   authenticate to services that use SSL and certificate
   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><form action="processkey.cgi" method="post" enctype="multipart/formdata">
+ <p><keygen name="key"></p>
+ <p><input type=submit value="Submit key...">
+</form></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>
 
   <dl class=element><dt>Categories</dt>

Modified: source
===================================================================
--- source	2009-09-09 06:47:17 UTC (rev 3772)
+++ source	2009-09-09 07:40:25 UTC (rev 3773)
@@ -40375,8 +40375,31 @@
   authenticate to services that use SSL and certificate
   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><form action="processkey.cgi" method="post" enctype="multipart/formdata">
+ <p><keygen name="key"></p>
+ <p><input type=submit value="Submit key...">
+</form></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>The <dfn><code>output</code></dfn> element</h4>
 
   <dl class="element">




More information about the Commit-Watchers mailing list