secure remote agent via BASIC AUTH and SSL