Class Rye::Key
In: lib/rye/key.rb
Parent: Object

Methods

Classes and Modules

Class Rye::Key::BadFile
Class Rye::Key::BadPerm

Attributes

authtype  [R]  Authentication type: RSA or DSA
keytype  [R]  Key type: public or private
name  [R]  A nickname for this key. If a path was specified this defaults to the basename.

Public Class methods

  • pubkey an instance of OpenSSL::PKey::RSA or OpenSSL::PKey::DSA

Returns a public key in SSH format (suitable for ~/.ssh/authorized_keys)

Public Instance methods

Encrypt text with this public or private key. The key must

Reveals some metadata about the key. Does not print the key.

    <Rye::Key:id_rsa.pub authtype="RSA" keytype="PRIVATE">

Reveals the key basename. Does not print the key.

    <Rye::Key:id_rsa.pub>

[Validate]