Added possibility to disable ssl