License#
CrushMFT 27 runs on a license: a file signed by CrushFTP, LLC and bound to this server, which says what the server may do (its features) and how far (its limits). The server activates it once with a token from the portal, and then checks in with the license service about once a day. The License section of Server Admin shows where the license stands, and is where it is activated, renewed and released.
Important
A server with no license serves no users. Administrators can still sign in to the admin pages and activate one. A free license takes one email address: get it in the portal.
Activate a license#
- Sign in to the portal with your email address and copy the license's token (it starts with
CMFT1-). A free license is made there too. - In Server Admin, open License and paste the token under activation. Choose the seat: production, or test when the license has a test seat.
- The server sends the token to the license service once, gets the signed license back and uses it at once, without a restart. The token is not kept anywhere: not in the settings, not in a log.
The same from the server's folder, without the admin pages:
java -jar CrushMFT.jar -license CMFT1-...
-license - reads the token from the standard input, so it stays out of the shell's history. A server already running from that folder takes the license up within a minute.
From a script, POST /WebInterface/api/v1/server/license/activate with {"token": "CMFT1-..."}. The license operations work while the license has no API, so a server can be licensed by a script; the API itself must be turned on in Preferences, API.
Servers without internet access#
A server that cannot reach the license service is licensed with a license file: the license, bound to that one server, made by the portal from the server's activation request. The server checks the file by itself and never needs to call home.
Tip
For a server that will never reach the internet, choose a perpetual license. It never expires: it runs every version released before its "updates until" date, for as long as you like, as CrushFTP 11 did. A yearly subscription stops 30 days after its paid year unless a renewed license file reaches the server, every year (see Renewals and upgrades).
Prepare the license before you go on site#
You can prepare everything on a computer with internet access and bring a server that is licensed from its first start, for example as a reseller installing at a customer's closed site.
-
On your own computer, unzip the same CrushMFT package you will install. Use a separate folder for each server.
-
In that folder, run:
java -jar CrushMFT.jar -license-requestIt starts nothing. It makes this installation's identity (the folder
cluster/) and prints its activation request. -
Sign in to the portal with the license's email address. Under Activate an offline server, choose the license, paste the request, and choose Get the license file.
-
In the same folder, apply the file:
java -jar CrushMFT.jar -license-file crushmft-license-....txt -
Copy the whole folder to the customer's server and start CrushMFT there. It is licensed from its first start.
Important
The license belongs to the identity made in step 2, which lives in the folder cluster/. Copy the whole folder, never only some of its files: a fresh installation, or a folder without cluster/, is another server and asks for activation again. Each prepared folder takes one seat (one server) of the license.
Activate a server that is already installed#
- On the License page, under Offline server, choose Show activation request (or run
-license-requestin the server's folder). - In the portal, under Activate an offline server, paste it and choose Get the license file.
- Bring the file to the server: Upload license file on the License page, run
-license-file <path>, or put it into the folderlicense/import/in the server's folder, where the server finds it within a minute.
Renewals and upgrades#
- Perpetual. A renewal (updates and support) moves the license's "updates until" date. Without an upgrade there is nothing to do on the server: it keeps running the version it has, for good. To install a newer version, open the license in the portal and choose Download the renewed license beside that server; install the new version and apply the file the same way as in step 3 above.
- Yearly subscription. The server needs the renewed license file every year, before the license expires (30 days after the end of the paid year), or it goes into limited mode. Download it in the portal (Download the renewed license beside that server) and apply it the same way.
The check-in#
About once a day the server checks in with the license service at https://license.crushftp.com, over HTTPS and through the server's outbound proxy settings. A renewal you paid in the portal comes back with the check-in: there is nothing to do on the server.
- It sends what identifies the license and this server, and the server's host name unless the setting
license_send_hostnameis off. - When the service cannot be reached, a paid license keeps working as it is. After three days without a check-in, an alert is sent.
- A free license works online only: 30 days without a check-in, and the server has no license until it checks in again.
- Test connection (on the License page, in About, in the control panel, or
-license-test) tries every step and says which one fails: the proxy, the name lookup, the connection, TLS, the service's signed time, this server's clock, and a check-in.
What a license includes#
| Feature | Free | Standard | Business | Enterprise |
|---|---|---|---|---|
| Two-factor sign-in | ✓ | ✓ | ✓ | ✓ |
| LDAP and Active Directory, events and alerts, cloud storage, PGP, the API, the AI assistant, sharing links, reports | ✓ | ✓ | ✓ | |
| Jobs, user-to-user sharing, the desktop apps, single sign-on (SAML, OIDC, RADIUS, Duo, Kerberos), monitoring (SIEM and syslog formats, Prometheus, SNMP), scheduled reports and reports in your own database, CrushTunnel, SOCKS5, user-defined VFS, file revisions, extra HTTP domains, the forward proxy | ✓ | ✓ | ||
| DMZ, high availability (a pair), AS2, roles for administrators, FIPS 140-3 mode | add-on | ✓ | ||
| Clustering beyond a pair, remote and standby job engines, RFile | ✓ |
The License page lists every feature with Included or Not included. Where something is refused because the license lacks it, the server says so in the same words everywhere, for example "This server's license does not include jobs. It is in Business." The API answers 403 with the code license_feature, the feature and the edition that has it.
Limits#
| Limit | Free | Paid |
|---|---|---|
| Connections at the same time | 5 | none; Max Global Server Connections in General settings can lower it |
| Users who signed in within the last 30 days | 5 | none |
| DMZ instances | none | the number the license allows |
Administrators are not counted and are never refused. In a cluster or a high availability pair every server holds its own seat: activate each one with the token.
Limited mode#
A server runs in limited mode when its subscription has ended, when a perpetual license does not cover the running version, when the license service has revoked or suspended the license, when FIPS mode runs without the FIPS feature, or when the license is another server's (after a restore onto a new machine, say). Not reaching the license service never puts a server in limited mode.
| In limited mode | |
|---|---|
| Features and limits | those of Free: two-factor sign-in, 5 users, 5 connections |
| Administrators | always sign in; the License page and the license commands work |
| Data | nothing is deleted or changed: users, VFS, jobs, shares and settings stay |
| Jobs | no new run starts; a run in progress finishes |
| DMZ | its instances take no new connections; connected sessions go on |
| Sharing links, events, the API, the AI assistant, single sign-on, AS2 | refused with the license's message; nothing is removed |
| Leaving it | a license that verifies (a check-in, an activation, a file) takes effect within a minute, without a restart |
Warning
An administrator who signs in only through LDAP or single sign-on cannot sign in while those features are missing. Keep one administrator of the server's own.
With no license at all (never activated, a released seat, or a free license 30 days without a check-in) the server is stricter than in limited mode: it serves no users. Administrators, the License page and the license commands still work, and nothing is deleted.
Renewals and notices#
The License page shows the paid period and when the next renewal is due; the invoice is sent 60 days before. The admin pages show a banner when something needs you, such as "No license: this server serves no users until a license is activated." or a renewal that is due or unpaid. A renewal due or unpaid, limited mode and a failing check-in also come as alerts. With monitoring in the license, Prometheus can watch the same: the license's state, when it expires and the last check-in (the license's metrics).
A perpetual license covers the versions built before its "updates until" date. A newer version is marked as needing an updates renewal and is not installed by itself; a version installed anyway runs in limited mode. A subscription covers every version while it is paid.
Move or release a license#
Release on the License page (or POST /server/license/release) gives the seat back: this server then has no license and serves no users, and the seat can be activated on another server. To move to a new machine, release the license on the old one and activate it on the new one.
The license is not one of the settings: it is kept in the folder license/ of the server's folder, the debug zip carries only its id and state, and a copy of the server restored onto another machine asks for activation.
Servers that work together#
- A DMZ has no license of its own: it gets the inner server's over the link, and follows it.
- Job engines follow the server's license.
- A cluster or a pair: every member is activated on its own seat. "Activate all nodes" is not available yet.
From CrushFTP 11#
A registration code of CrushFTP 11 or earlier does not license CrushMFT 27. At the first start on version 11 settings the server keeps the old registration for support, starts with no license, and the License page and a banner say where the CrushMFT 27 license waits in the portal when your maintenance is active. Get the license before you upgrade, so that the new server serves users within minutes: see Upgrading from CrushFTP 11.
The command line#
Run in the server's folder; the settings are read without starting any listener.
| Command | Does |
|---|---|
-license <token> [production|test] |
activates this server and exits; -license - reads the token from the standard input |
-license-file <path> |
applies a license file from the portal (an offline activation or a renewal) |
-license-request [production|test] |
prints the offline activation request |
-license-status |
the license, its renewal dates and the last check-in |
-license-test |
tests the connection to the license service, step by step |
The control panel has the same under License.
The API#
| Operation | Does |
|---|---|
GET /server/license |
the license: state, edition, features, limits, dates, the last check-in and connection test |
POST /server/license/activate |
activates with a token from the portal |
POST /server/license/request |
the offline activation request |
POST /server/license/import |
applies a license file |
POST /server/license/checkin |
checks in now |
POST /server/license/test |
tests the connection to the license service |
POST /server/license/release |
releases this server's seat |
Their reference is in Server. Viewing the license needs the permission license.view; changing it needs license.manage, which full administrators have.