Usage: stratum license <action>   (module type: setting)

The Stratum license of this computer: hardware ID, license request and the
license itself (signed by Stratum, checked offline). Modules such as
stratum-support work only with a license that has their feature.

Actions:
  status              hardware ID, license state, level, features, validity
  hwid                the hardware ID and its parts
  request             the license request code - send it to Stratum
                      (hardware ID and the key for remote support)
  install [file|-]    install a license: a license file or the license code
                      (-----BEGIN STRATUM LICENSE----- ... ; - = stdin)
  remove              remove the license (kept as license.removed)
  check <feature>     exit status 0 when the license allows the feature
                      (e.g. support), also during the grace period
  info                the license as KEY=value (for scripts and modules)
  clock               the time the license uses (see below)
  help                show this help

Hardware ID: from the DMI product UUID, /etc/machine-id and the MAC address
of the default interface; the license stays valid while 2 of 3 match.

Time: setting the clock back does not make an expired license valid again.
The license uses the latest of the system clock, the newest date of the
signed APT repository metadata and the latest time seen before (kept in
/var/lib/stratum/license/clock, updated on every check and every day by
stratum-license-clock.timer). "status" warns when the system clock is more
than a day behind.

Machine-readable output: add --json to status, hwid, request, install,
remove, check <feature>, info or clock. The text output stays as it is.
  stratum license status --json
  {"state": "active", "level": "standard", "customer": "...",
   "features": ["support"], ...}

Files:
  /etc/stratum/license/license         the installed license
  /etc/stratum/license/relay_ed25519   key for remote support (in the request)
  /usr/lib/stratum/license/signing.pub Stratum's public license key
  /var/lib/stratum/license/clock       the latest time seen
