keygen
Definition and Usage
The <keygen> tag is used for generating a key pairand specifies a key-pair generator field used for forms. The HTML <keygen> tag is used to process Web forms with certificate management systems. This can be used for generating signed certificates, which can be used to authenticate to services that use Transport Layer Security (TLS) and certificate authentication. When the control's form is submitted, the private key is stored in the local keystore, and the public key is packaged and sent to the server. The element generates a secure key and submits the public key. The<keygen>
element generates an encryption key for passing encrypted data to a server. When used in a form, the <keygen>
element will provide the user with a range of key size options. It may also provide a choice of where to generate the key, for example in a smart card or in software and stored on disk. In this case the user's browser would need to be configured to support cryptographic hardware.