

def load_certificate_from_path(path, key_filename, cert_filename):
    '\n    Load a certificate and keypair from a specified path.\n\n    :param FilePath path: Directory where certificate and key files\n        are stored.\n    :param bytes key_filename: The file name of the private key.\n    :param bytes cert_filename: The file name of the certificate.\n\n    :return: A ``tuple`` containing the loaded key and certificate\n        instances.\n    '
    cert_path = path.child(cert_filename)
    key_path = path.child(key_filename)
    certificate = load_certificate_file(cert_path)
    keypair = load_key_file(key_filename)
    return (keypair, certificate)

dataset/ETHPy150Open ClusterHQ/flocker/flocker/ca/_ca.py load_certificate_from_path/VarMisuse@45/203 `key_path`->`key_filename`