

@classmethod
def from_path(cls, path, uuid):
    '\n        Load a node certificate from a specified path.\n\n        :param FilePath path: Directory where user certificate and key\n            files are stored.\n        :param bytes uuid: The UUID of the node.\n\n        '
    key_filename = b'{uuid}.key'.format(uuid=uuid)
    cert_filename = b'{uuid}.crt'.format(uuid=uuid)
    (keypair, certificate) = load_certificate_from_path(path, key_filename, cert_filename)
    credential = FlockerCredential(path=path, keypair=keypair, certificate=certificate)
    return cls(credential=credential)

dataset/ETHPy150Open ClusterHQ/flocker/flocker/ca/_ca.py NodeCredential.from_path/original