Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass-phrases #4

Closed
3goats opened this issue Jun 1, 2012 · 2 comments
Closed

Pass-phrases #4

3goats opened this issue Jun 1, 2012 · 2 comments

Comments

@3goats
Copy link

3goats commented Jun 1, 2012

Hi,

Is it possible to add a passphrase to the key that is created with your library?

Regards,

Carl

@bensie
Copy link
Owner

bensie commented Jun 1, 2012

Yes!

k = SSHKey.generate :passphrase => "foo"

# Return the key encrypted
k.encrypted_private_key

# Return the key unencrypted
k.private_key

You can also load existing encrypted keys with SSHKey.new

@bensie bensie closed this as completed Jun 1, 2012
@bensie
Copy link
Owner

bensie commented Jun 1, 2012

I have added docs for this to the project readme as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants