Fixed the SSL support so that it actually works