Closed rjharmon closed 14 years ago
I've updated the code to support an unencrypted private key by setting the password to an empty string. Grab version 0.3.0.
I'm not sure I like using a blank password to imply an unencrypted key, so I may rework this in the future.
As part of this change I make it possible to also pass the keys as a string or a OpenSSL::PKey::RSA object, in addition to a file path.
It looks like you're asking if the passphrase is blank? instead of nil - if the secret key is not encrypted (being secured through other means), then the data can't be recovered with the current version of your code :)
Fortunately, it's an easy fix.