Enabling ssl and introducing ssl flags to the invetory file

Flags can enable/disable ssl in the api and real consumer.