added support for SSL

Support for SSL