[Closes #41] Added support for SSL