(ignoreCertificateErrors() == true) means SSL is supported.  So I think this line should be:
   bool sslSupported = ignoreCertificateErrors(errors);