Tested the self signed https agent logic. No http headers are sent if a bad cert is detected and an error is raised.