

@classmethod
def from_path(cls, path, username):
    '\n        Load a user certificate from a specified directory path.\n\n        :param FilePath path: Directory where user certificate and key\n            files are stored.\n        :param unicode username: The UTF-8 encoded username.\n        '
    key_filename = (cert_filename + '.key')
    cert_filename = (username + '.crt')
    (keypair, certificate) = load_certificate_from_path(path, key_filename, cert_filename)
    credential = FlockerCredential(path=path, keypair=keypair, certificate=certificate)
    return cls(credential=credential, username=username)

dataset/ETHPy150Open ClusterHQ/flocker/flocker/ca/_ca.py UserCredential.from_path/VarMisuse@22/102 `username`->`cert_filename`