Enable SSL/TLS communication through -ssl flag

Adds support for SSL/TLS (HTTPS) with a simple flag