fix issue with self signed / invalid ssl certs