self signed certificates with new api