def set_auth(pem=None, cert=None, key=None, aad=False):
if any([cert, key]) and pem:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if any([cert, key]) and not all([cert, key]):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if pem:<EOL><INDENT>set_config_value('<STR_LIT>', '<STR_LIT>')<EOL>set_config_value('<STR_LIT>', pem)<EOL><DEDENT>elif cert or key:<EOL><INDENT>set_config_value('<STR_LIT>', '<STR_LIT>')<EOL>set_config_value('<STR_LIT>', cert)<EOL>set_config_value('<STR_LIT>', key)<EOL><DEDENT>elif aad:<EOL><INDENT>set_config_value('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>set_config_value('<STR_LIT>', '<STR_LIT:none>')<EOL><DEDENT>
Set certificate usage paths