ssh-keychain is a RSA vault you can add, list and remove keys from.
This module is designed as a backend for ssh-agent-js, a nodejs SSH agent.
const KeyChain = require('ssh-keychain');
var vault = new KeyChain(); //new empty vault
vault.add_key( fs.readFileSync('some/rsa/key.pem', 'utf-8), 'mykeycomment');
// vault.keys//list current keys in vault
vault.sign("mykeycomment" //or key fingerprint, new Buffer("SomePpayload to sign"));
Add a key in the vault, with an optionnal key name.
Sign the payload with the desired key
Remove the key from by its fingerprint (or key name) from the vault
Remove all keys from the vault
- 131 author
- node-rsa