docs: def https():
      '''
      Determines whether enough data has been provided in configuration
      or relation data to configure HTTPS
      .
      returns: boolean
      '''
      use_https = config_get('use-https')
      if use_https and bool_from_string(use_https):
          return True
      if config_get('ssl_cert') and config_get('ssl_key'):
          return True
      for r_id in relation_ids('certificates'):
          for unit in relation_list(r_id):
              ca = relation_get('ca', rid=r_id, unit=unit)
              if ca:
                  return True
      for r_id in relation_ids('identity-service'):
          for unit in relation_list(r_id):
              # TODO - needs fixing for new helper as ssl_cert/key suffixes with CN
              rel_state = [
                  relation_get('https_keystone', rid=r_id, unit=unit),
                  relation_get('ca_cert', rid=r_id, unit=unit),
              ]
              # NOTE: works around (LP: #1203241)
              if (None not in rel_state) and ('' not in rel_state):
                  return True
      return False