HTML keygen tag

The HTML <keygen> tag generates a cryptographic key pair in an HTML document.

The <keygen> tag 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 <keygen> element’s form is submitted, the private key is stored in the local keystore, and the public key is packaged and sent to the server.

<form action="/html/tags/html_keygen_tag_action.cfm" method="post" target="key">
<keygen name="rsaPublicKey" challenge="012345" keytype="RSA">
<input type="submit" name="generateCertificate" value="Generate" />
<iframe name="key" width="100%" height="50%"></iframe>

Eg. :