Handle self signed certificates