Enable https and also an option to pass in ca_file