Add more extensive certificate verification to agent-auth