Added SSL support

Optional SSL flag