Fix a bug where app will not work if you are using custom SSL certs(self signed). 