Added SSL support. Ignores the cert in case its self signed.