juliangruber / keypair

Generate a RSA PEM key pair from pure JS
Other
274 stars 51 forks source link

Added authorized_keys functionality #8

Closed podrezo closed 7 years ago

podrezo commented 9 years ago

Simply pass openSSH to opts as a truthy value and it will generate a line for OpenSSH. Have not tested it with an actual SSH system, should be double checked.

juliangruber commented 9 years ago

sgtm. what do you think @julianwaprogramms @troyjfarrell?

podrezo commented 9 years ago

Looks like the test failed on the CI because the CI server doesn't have crypto.publicEncrypt() in its version of the built-in crypto module.

 TypeError: Object #<Object> has no method 'publicEncrypt'

I added that test just to do a sanity check on the generated keys that they can encrypt and decrypt correctly. It is not related to the functionality I wrote.

juliangruber commented 9 years ago

hm let's rather update .travis.yml to only test on nodes that can do this