Activating LexFloatServer
LexFloatServer must be activated with an on-premise-floating license before it can lease seats. Your customer can activate it from the local dashboard, the command line, or the API endpoints, online or offline. Online activation needs internet access on the machine running LexFloatServer. Without it, use offline activation.
If the server serves more than one product, each product has its own license and is activated separately. The command line can activate every product in one step, using the license keys in config.yml. The local dashboard and the API endpoints activate one product at a time.
How offline activation works
When the machine running LexFloatServer has no internet access, the license is activated offline by exchanging files:
- LexFloatServer generates a request file. Your customer enters the license key, and LexFloatServer generates an offline activation request file for the product.
- The request is exchanged for a response. Your customer uploads the request file in the customer portal from any machine with internet access and downloads the offline activation response file. If your customer does not have access to the customer portal, they share the request file with you, and you create the response file in the admin portal and send it back to your customer.
- LexFloatServer consumes the response. Your customer uploads the response file to LexFloatServer to activate the product.
The response file expires after a set time, so use it before then. See Offline Licenses.
Using the local dashboard
Open http://localhost:8090 (or the port set in server.port) and log in with a user from the auth.admins list in config.yml. Open a product to see its activation options.
Online activation
Your customer enters the product's license key and clicks Activate.
Offline activation
- Your customer switches to offline activation, enters the license key, and generates the offline activation request file.
- Exchange the request file for a response file (see How offline activation works).
- Your customer uploads the response file in the local dashboard and clicks
Activate.
Using command-line options
Online activation
To activate with the license key set in config.yml (the licenseKey setting), pass the -a option:
lexfloatserver -aIf config.yml lists several products, this activates every enabled product. If one fails, the others are still activated, and the output lists the products that failed.
To activate only one product, select it with -p. To use a license key that is not in config.yml, pass it with -l:
lexfloatserver -a -p ./products/ProductA.dat -l LICENSE_KEYOffline activation
Offline activation is done one product at a time.
-
Your customer generates the offline activation request file:
lexfloatserver -g -p ./products/ProductA.dat --offline-request ./request.dat -
Exchange the request file for a response file (see How offline activation works).
-
Your customer activates the product with the response file:
lexfloatserver -a -p ./products/ProductA.dat --offline-response ./response.dat
If the license key is not in config.yml, pass -l LICENSE_KEY to both commands.
Checking the status
lexfloatserver --statusThis shows each product's activation status, license key, and the days left until the license expires.
Using the API endpoints
Each request body includes the product's productId. Fields marked with * are required.
Online activation
POST /api/v4/server/activateAuthentication: Required
| Field | Description |
|---|---|
productId* | The product's ID, from Getting the list of products. |
licenseKey* | The product's on-premise-floating license key. |
metadata | Activation metadata, as an array of key and value pairs. |
curl -X POST http://localhost:8090/api/v4/server/activate \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"productId": "PRODUCT_ID", "licenseKey": "LICENSE_KEY"}'On success, code in the response is SERVER_LICENSE_ACTIVATED. A failed activation returns an error.
Offline activation
-
Generate the offline activation request:
POST /api/v4/server/offline-activation-requestAuthentication: Required
The request body is the same as for online activation. Save the
offlineRequestvalue from the response to a file. This is the offline activation request file. -
Exchange the request file for a response file (see How offline activation works).
-
Activate the product with the response file:
POST /api/v4/server/offline-activateAuthentication: Required
Field Description productId*The product's ID, from Getting the list of products. licenseKey*The same license key used for the request. offlineResponse*The contents of the offline activation response file. The response is the same as for online activation.
Deactivating LexFloatServer
Deactivation releases the LexFloatServer activation, so the license can be used to activate LexFloatServer on another machine.
To activate a product with a different license key, deactivate its current license first. Activation with a different license key fails while the current license is active.
An offline deactivation removes the activation from LexFloatServer at once. To release it in Cryptlex, upload the offline deactivation request file in the customer portal or the admin portal.
Deactivating with the local dashboard
Open the product and click Deactivate. To deactivate offline, switch to offline deactivation. LexFloatServer generates the offline deactivation request file.
Deactivating with the command line
# Every enabled product
lexfloatserver -d
# One product
lexfloatserver -d -p ./products/ProductA.dat
# One product, offline
lexfloatserver -d -p ./products/ProductA.dat --offline-request ./deactivation.datDeactivating with the API endpoints
Each endpoint takes the product's ID and its current license key, which confirms the deactivation.
To deactivate online:
POST /api/v4/server/deactivateAuthentication: Required
curl -X POST http://localhost:8090/api/v4/server/deactivate \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"productId": "PRODUCT_ID", "licenseKey": "LICENSE_KEY"}'On success, it returns 204 with no body.
To deactivate offline, send the same request body to POST /api/v4/server/offline-deactivate, which also requires authentication. The response contains the request file contents, { "offlineRequest": "..." }. Save the value to a file. This is the offline deactivation request file.
Applying license changes to an offline-activated server
A server with internet access syncs license changes, such as a renewal or more seats, on its own. A server activated offline does not see changes made in the admin portal until it gets new license data, in one of two ways:
- Repeat the offline activation with a new request file and response file.
- Give the machine temporary internet access. Restart LexFloatServer to sync right away.