Skip to content

Instantly share code, notes, and snippets.

@latsku
Created March 7, 2016 11:26
Show Gist options
  • Save latsku/fcca1743a6579e84f857 to your computer and use it in GitHub Desktop.
Save latsku/fcca1743a6579e84f857 to your computer and use it in GitHub Desktop.
HTML key generator
<!DOCTYPE html>
<html>
<h1>Let's generate you a cert so you don't have to use a password!</h1>
Hit the Generate button and then install the certificate it gives you in your browser.
All modern browsers (except for Internet Explorer) should be compatible.
<form method="post">
<keygen name="pubkey" challenge="randomchars">
The username I want: <input type="text" name="username" value="Alice">
<input type="submit" name="createcert" value="Generate">
</form>
<strong>Wait a minute, then refresh this page over HTTPS to see your new cert in action!</strong>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment