XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / keygen
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
keygen
HTML 5 |
HTML: <keygen>; XHMTL: <keygen/> or <keygen />
Used as part of a form defined with form to generate key pairs for web-based certificate management systems used for secure transactions.
Notes
HTML 5 only.
Start/end tag
This is an empty element. In HTML 5, it must end with a slash before the closing angle bracket. Developers can insert a space before the slash to improve backward compatibility with older browsers.
Attributes
Global HTML 5 attributes
autofocus(autofocus="autofocus"in XHTML 5)Makes a control active and ready to accept input when the document loads.
challenge="challenge-string"Defines a challenge string that must be entered with the key.
disabled(disabled="disabled"in XHTML 5)Prevents use of the control and submission of its value.
form="ID des übergeordneten Formulars"Associates the element with the form identified by ID in the same document.
keytype="Schlüsselwort"Defines the encryption type for the key to be created (for example
rsaorec).name="Text"Assigns a name to the control for use when submitting the form.
Example
The following code is based on a listing from the Mozilla Developer Network. It is used under a Creative Commons Attribution-Share Alike license:
<form method="post" action="http://www.example.com/cgi-bin/dekodieren.cgi">
<keygen name="RSA public key" challenge="123456789" keytype="RSA">
<input type="submit" name="Zertifikat_des_Erstellers" value="Schlüssel erzeugen">
</form>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de