Added SSL/TLS connection method