fix up certificate reading, from request.