script to convert existing openssh keys to allow passwordless login to the web

A large number of developers these days have ssh keys that they use to log
in to github securely

These same keys can now be used to log in to the web using x.509

The following script will convert your keys for you from openssh to pem,
either as a module or run from the command line:

https://gist.github.com/gitpay/util/blob/master/opensshToX509.js

Usage:  nodejs opensshToX509.js <github login> [public key file] [private
key file] [output file pem]

(if you call from $HOME/.ssh/ directory it should pick up your default key)

I am running for convenience an identity provider that coverts your keys
for you to turtle in realtime so that you can claim an identity such as:

http://graphite.ecs.soton.ac.uk/browser/?uri=http://gitpay.org/timbl

If your browser doesnt import pem, you can convert to a similar format p12
with:

    openssl pkcs12 -export -out id_rsa.p12 -inkey id_rsa.pem -in id_rsa.pem
-certfile id_rsa.pem

You can test the login at :

https://melvincarvalho.github.io/helloworld/

The script can be run as a library or directly from the command line

Huge thanks for Nicola Greco for help with packaging and general feedback.

Received on Saturday, 1 August 2015 23:56:08 UTC