Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Create a key object by reading a private key from a file (or file-like)
object.  If the private key is encrypted and C{password} is not C{None},
the given password will be used to decrypt the key (otherwise
L{PasswordRequiredException} is thrown).

@param file_obj: the file to read from
@type file_obj: file
@param password: an optional password to use to decrypt the key, if it's
    encrypted
@type password: str(more...)

src/s/s/ssh-HEAD/tests/test_pkey.py   ssh(Download)
        self.assertEquals(RSA_PRIVATE_OUT, s.getvalue()) 
        s.seek(0)
        key2 = RSAKey.from_private_key(s)
        self.assertEquals(key, key2)
 

src/s/s/ssh-1.8.0/tests/test_pkey.py   ssh(Download)
        self.assertEquals(RSA_PRIVATE_OUT, s.getvalue()) 
        s.seek(0)
        key2 = RSAKey.from_private_key(s)
        self.assertEquals(key, key2)