Add support for SSL with incorrect certificates