![]() |
|
<keygen>
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||
This was an early attempt of making forms submission secure across the internet. The explanation below is a quote from Netscape, the original sponsor.
"The KEYGEN tag facilitates the generation of key material and submission of the public key as part of an HTML form. This mechanism is designed for use in web-based certificate management systems. It displays a menu of key-size choices from which the use must choose one. Then, when the submit button is pressed, a key pair of the selected size is generated. The private key is encrypted and stored in the local key database.
The public key and challenge string are DER encoded as PublicKeyAndChallenge, and then digitally signed with the private key to produce a SignedPublicKeyAndChallenge. The SignedPublicKeyAndChallenge is base64 encoded, and the ASCII data is finally submitted to the server as the value of a name-value pair, where the name is name as specified by the NAME attribute of the KEYGEN tag." (Netscape)
Example
<keygen name="somekey" challenge="1125983021">