# File lib/rye/key.rb, line 63 63: def public_key 64: raise OpenSSL::PKey::PKeyError, "No public key" if !@keypair 65: pubkey = public? ? @keypair : @keypair.public_key 66: # Add the to_ssh2 method to the instance of OpenSSL::PKey::*SA only 67: def pubkey.to_ssh2; Rye::Key.public_key_to_ssh2(self); end 68: pubkey 69: end