Fixed iOS code so it is able to connect to https
Able to connect to servers with self-signed certs