added setCertAuth (untested) and setCacAuth (initially tested) and added example