@classmethod
def generate_and_write_files(cls, path=None, file_name=None, key_size=None,
    passphrase=None):
    """Generate and write public and private rsa keys to local files

        :param str path: Path to put the file(s)
        :param str file_name: Name of the private_key file, 'id_rsa' by default
        :param int key_size: RSA modulus length (must be a multiple of 256)
                             and >= 1024
        :param str pass_phrase: The pass phrase to derive the encryption key
                                from
        """
    keys = cls.generate_rsa_ssh_keys(key_size, passphrase)
    cls.write_secure_keys_local(private_key=keys.private_key, public_key=
        keys.public_key, path=path, file_name=file_name)
