License File - Manual¶
WHAT TO EXPECT
In this article, users will learn how to license a cloudSwXtch with a License File provided by swXtch.io without using wXcked Eye. First, they get the cloudSwXtch's licensing fingerprint and send it to swXtch.io, requesting a license. Then they place the license.json file on the cloudSwXtch VM and check that the license has taken effect.
To license a cloudSwXtch with a License File through wXcked Eye, see Topology Graph - Fleet - Licenses Tab. To license cloudSwXtches with a license bundle held by the OMNI, see License Bundles.
Locating the fingerprint and requesting a license¶
To receive a license file from swXtch.io Support, users need to provide the cloudSwXtch's licensing fingerprint. It can be found in any of these places:
- At the end of the cloudSwXtch installation, the installer prints it: “Machine fingerprint (swxtch licensing):
”. - In wXcked Eye, in the Fingerprint column of the Fleet Licenses tab.
- With swx-cli, on the cloudSwXtch VM:
swx-cli swxtches listshows afingerprintfield for each cloudSwXtch.
On AWS, the fingerprint is the VM's instance ID (for example, i-0056d6bf1ebbb3611).
Copy the fingerprint and send it to support@swxtch.io, requesting a license file.
The license file format¶
A 5.0 license file is signed by swXtch.io. Its content is readable, not encrypted:
{
"format": "signed-v1",
"keyId": "prod-2026",
"payload": "<the license, base64-encoded>",
"signature": "<the signature>"
}
payloaddecodes (base64 -d) to the license itself: the fingerprint, the plan, the expiry date and the entitlements.- The signature covers the payload exactly. A license file with any change to its payload is refused.
- 5.0 accepts only signed license files. A 4.x license file (encrypted, with only
keyIdandpayload) leaves the cloudSwXtch unlicensed. Request a re-issued license (see Upgrading and Updating cloudSwXtch). - A license file is issued for one fingerprint. A license file without one is refused.
Development licenses¶
swXtch.io also issues development licenses, for internal tests and some proofs of concept. A cloudSwXtch running on one shows a Development license badge in wXcked Eye (the node's sidebar and the Fleet Licenses tab), and swx-cli licenses show prints [Development license] next to it. A production cloudSwXtch must not run on a development license: contact support@swxtch.io for a production one.
Release builds of cloudSwXtch (every vX.Y.Z version) refuse development licenses and development bundles: they run only on a development build. A release refuses one with "License is signed by a key this build does not trust". To see which license keys a build accepts, run on the cloudSwXtch host:
sudo docker exec swx-swxtch swx-swxtch license-keys
sudo docker exec swx-omni /swxtch/swx-omni license-keys
A release prints only production keys, for example Trusted license keys: prod-2026 (production). The swXtch and OMNI logs show the same line at startup.
Adding the License File to the cloudSwXtch VM¶
After receiving a license file from swXtch.io, users will now need to upload it to their cloudSwXtch VM.
- Upload the license.json file onto the cloudSwXtch VM in the user’s home directory.
-
Move the license.json file to the /var/opt/swx/swxtch directory using the following command, replacing
with the appropriate value: -
Check that the license has taken effect (see Obtaining license information).
Alternatively, users can create the file with a shell editor, copy the license content to the clipboard, and paste the content into the editor. For example, using nano:
If the cloudSwXtch has an old license, or the user wants to replace the current one, remove the current line with CTRL+K and paste the new license.
Save the file with CTRL+X, accepting the “Save modified buffer?” prompt with Y, and hitting Enter to the “File Name to Write: /var/opt/swx/swxtch/license.json” prompt.
NOTE
The cloudSwXtch picks up the new license automatically when the file is saved.
Obtaining license information¶
The license information can be found in wXcked Eye, in the Fleet Licenses tab. It can also be obtained with swx-cli on the cloudSwXtch VM:
For each cloudSwXtch, licensed shows whether it is licensed, and licensingInfo shows the license type ("License File" for a license file) and its expiry date. The entitlements block lists what the license entitles. For an example of the output, see swx-cli swxtches.