Skip to content

How to License the groundSwXtch

Last validated:
View as Markdown

WHAT TO EXPECT

In this article, users will learn how to license a groundSwXtch with a license file provided by swXtch.io.

Locating the Fingerprint and Requesting a License

To receive a license file from swXtch.io Support, users need to provide the groundSwXtch fingerprint, which is shown in the groundSwXtch User Interface.

  1. Open the groundSwXtch User Interface. Replace <groundSwXtch-IP> with the IP address of the groundSwXtch:

    http://<groundSwXtch-IP>/
    
  2. Select the Configure tab and select the groundSwXtch that needs a license (if it does not appear, see Add groundSwXtch).

    Configure tab with the groundSwXtch selected at the top and the Copy button next to the license fingerprint highlighted

  3. Select Copy and send the groundSwXtch fingerprint to support@swxtch.io.

Adding the License File to the groundSwXtch

After receiving the license file from swXtch.io, users need to add it to their groundSwXtch.

  1. Copy the contents of the license file.
  2. Open the groundSwXtch User Interface. Replace <groundSwXtch-IP> with the IP address of the groundSwXtch:

    http://<groundSwXtch-IP>/
    
  3. Select the groundSwXtch and select the Configure tab (if it does not appear, see Add groundSwXtch).

  4. Paste the license into the Install/replace license section and select Preview & apply:

    License & capacity section of the Configure tab with a license pasted into the Install / replace license box, above Preview & apply

  5. The Review license entitlements window opens, showing the current and proposed license entitlements.

    Review license entitlements window comparing the current and new expiry date and customer, with Apply license highlighted

  6. If the changes are acceptable, select Apply license; otherwise, select Cancel.

  7. The license entitlements are now shown.
  8. On the main groundSwXtch page, a green icon also shows that the groundSwXtch is licensed.

Alternative: License from the Command Line

Without a browser (for example, on an air-gapped host), run these commands on the groundSwXtch host:

  1. Get the fingerprint and send it to support@swxtch.io:

    curl http://127.0.0.1/api/v1/license/fingerprint
    
  2. Copy the license file received from swXtch.io into place:

    sudo cp license.key /var/lib/groundswxtch/license.key
    
  3. Load the license. No container restart is needed:

    curl -X POST http://127.0.0.1/api/v1/license/reload
    

The installer can also add the license during the installation with --license-dir <dir>: it copies <dir>/license.key into /var/lib/groundswxtch when no license is installed yet.