uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

find browserify-able alternative to forge

Open trevj opened this issue 9 years ago • 2 comments

The DigitalOcean module uses node-forge (via forge-min) to generate SSH keys for newly created droplets. node-forge is not amenable to browserification (https://github.com/uProxy/uproxy/issues/2220) which means every repo that depends on the digitalocean module needs to include forge-min...a real maintenance pain.

We should find another library capable of generating SSH keys.

trevj avatar Apr 04 '16 16:04 trevj

Wild proposal: use WebCrypto to generate a keypair and then convert it to SSH format. Unfortunately, WebCrypto is EC-only and ssh2's support for EC is still in its infancy.

trevj avatar Apr 22 '16 15:04 trevj

via @bemasc:

Chrome's list of supported ciphers: https://www.chromium.org/blink/webcrypto

A page that tests your current browser: https://diafygi.github.io/webcrypto-examples/

It looks like Chrome and Firefox both support "RSA-OAEP" and "RSASSA-PKCS1-v1_5", but only Chrome supports "RSA-PSS".

trevj avatar Apr 22 '16 18:04 trevj