ssh-keygen in the browser
Find a file
Patrick Roumanoff 136149a6b5 rename
2015-09-03 23:09:48 +10:00
.gitignore cleanup 2015-09-03 22:54:43 +10:00
base64url.js working state 2015-09-03 21:58:00 +10:00
bower.json working state 2015-09-03 21:58:00 +10:00
index.html rename 2015-09-03 23:09:48 +10:00
js-keygen-ui.js rename 2015-09-03 23:09:48 +10:00
js-keygen.css cleanup 2015-09-03 22:54:43 +10:00
js-keygen.js rename 2015-09-03 23:09:48 +10:00
package.json working state 2015-09-03 21:58:00 +10:00
qunit.html working state 2015-09-03 21:58:00 +10:00
README.md better README 2015-09-03 22:05:36 +10:00
ssh-util.js working state 2015-09-03 21:58:00 +10:00
tests.js working state 2015-09-03 21:58:00 +10:00

Generate a ssh keypair using the webcrypto API

There is no way to generate a ssh keypair on the chrome book, but we have access to chrome and the webcrypto API. I had to do all sorts of gymnastics to convert the generated keypair to something that can be consummed by SSH.

  • I had to learn about the WebCrypto API - which was the initial goal
  • I had to learn about JWK
  • I had to learn about ASN.1 to encode the private key for open SSH
  • I had to lean about the open SSH public format to encode the public key for open SSH

The end result is a usable single page app that will locally generate a keypair you can save to local drive. Allowing you to do that straight from chrome on a chrome book.

Everywhere else, you should have access to ssh-keygen which is the recommended way to generate keypair for SSH.