

@classmethod
def from_path(cls, path, hostname):
    '\n        Load a control service certificate and key from the supplied path.\n\n        :param FilePath path: Directory where control service certificate\n            and key files are stored.\n        :param bytes hostname: The hostname of the control service certificate.\n        '
    (keypair, certificate) = load_certificate_from_path(path, b'control-{}.key'.format(hostname), b'control-{}.crt'.format(hostname))
    credential = FlockerCredential(path=path, keypair=keypair, certificate=certificate)
    return cls(credential=credential)

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