'Reads a public or private key.'

def read_key(self, filename, keyform):

    print(('Reading    %s    key    from    %s' % (self.keyname, filename)), file=sys.stderr)
    with open(filename, 'rb') as keyfile:
        keydata = keyfile.read()
    return self.key_class.load_pkcs1(keydata, keyform)
