Add SSL/TLS support

Issue #44