support https with self signed certificates