Correctly handle proxy certificates.