Added debug option, to disable SSL - used for testing ESB integration with an invalid SSL certificate.