from pathlib import Path


def check_pem_files(keys_path):
    """Check *_public.pem and *_private.pem is exist."""
    pub_file = Path(keys_path + "_public.pem")
    pri_file = Path(keys_path + "_private.pem")
    return bool(pub_file.is_file() and pri_file.is_file())