When you say that it failed, what do you exactly mean? Did it get a connection refused error? Or maybe it got a certificate not verified error. In the case of the latter, you need to have a verified SSL certificate in order to avoid that error.
Javier J. Salmerón