Configure Offline Qt License Server
After you install the Qt License Server package, configure the instance and start it as a system service.
Configure the server
To configure Offline Qt License Server:
- Copy the Qt License Server package to the folder where you want to run it. Place all the files in the same folder.
- In the configuration file (Linux:
qt-license-server.service, Windows:qt-service.xml), change the environment variables of Qt License Server.Example:
Environment="QLS_PORT=8080" Environment="QLS_ENABLE_SSL=yes" Environment="QLS_LOG_LEVEL=info"<env name="QLS_PORT" value="8080" /> <env name="QLS_ENABLE_SSL" value="yes" /> <env name="QLS_LOG_LEVEL" value="info" />For more information about enabling HTTPS, see Set up SSL certificates.
Warning: The following configuration determines the type of your Qt License Server. For more information, see Overview.
In the same configuration file, set the operation mode to
offline:Environment="QLS_OPERATION_MODE=offline"<env name="QLS_OPERATION_MODE" value="offline" />- Add the node-locked offline license file,
entitlement.json, to the Qt License Server root folder.To obtain a node-locked offline license file, follow these steps.
- Ensure you have defined the port number of the running Offline Qt License Server instance in the configuration file (Linux:
qt-license-server.service, Windows:qt-service.xml). For example:
Environment="QLS_PORT=8080"<env name="QLS_PORT" value="8080" />Note: Provide the port number you plan to use in production.
- Generate the hardware fingerprint on the Offline Qt License Server host computer with qt-license-server:
./qt-license-server generate-server-fingerprint.\qt-license-server.exe generate-server-fingerprintNote: Run this command on the machine you intend to use in production.
- Go to Qt Customer Portal > My Licenses (1), and select the license number of the license (2).

- In License Details, enter:
- Hardware Fingerprint (3).
- Port Number (4).

- Select Activate (5).
- Select Download entitlement.json (6) in Downloads to download the entitlement.json file.

- Copy the
entitlement.jsonfile to the folder where Qt License Server runs. If you already have a license file in the folder, replace it with the new one. - Restart Offline Qt License Server to apply the new license file:
systemctl daemon-reload systemctl restart qt-license-server.serviceqt-service.exe stop qt-service.exe start - Verify that the correct licenses are loaded by Offline Qt License Server:
./qt-license-server status --url <URL>.\qt-license-server.exe status --url <URL>In case the licenses are not imported correctly, check the logs. Contact Qt Support if needed.
For more information about
entitlement.jsonand node-locking, see Manage license node-locking and Compose entitlement.json from multiple licenses. - Ensure you have defined the port number of the running Offline Qt License Server instance in the configuration file (Linux:
- Manage access control lists as described in Manage ACLs.
If you don't change the environment variables, Qt License Server uses the default configuration. For more configuration options, see Qt License Server configuration.
Set up SSL certificates
To enable a secure connection (HTTPS) between the end-user machines that are running Qt License Service and Qt License Server, obtain an SSL certificate from a trusted public Certificate Authority.
To set up SSL:
- Obtain the SSL certificate from a trusted public Certificate Authority.
- Enable SSL on Qt License Server:
Open the
qt-license-server.servicefile and enable the following attribute:Environment="QLS_ENABLE_SSL=yes"Open the
qt-service.xmlfile and enable the following attribute:<env name="QLS_ENABLE_SSL" value="yes" /> - Place the following files in the root folder of Qt License Server:
cert.pemkey.pem
- Restart Qt License Server.
Note: In localhost testing environments, you can set QLS_ENABLE_SSL to no. In production, a certificate from a Certificate Authority is required on the computer hosting Qt License Server.
Start the server
To install Qt License Server as a system service (systemd):
- Ensure you are in the package root directory.
- Install Qt License Server and set it up as a
systemdservice using the installation script file:sudo ./installer.sh - Check the status of Qt License Server:
systemctl status qt-license-server.service - Check the environment variables of Qt License Server:
systemctl show qt-license-server.service -p Environment
By default, Qt License Server runs as a service in the background. To check the status:
systemctl is-active qt-license-server.service- Ensure you are in the package root directory.
- Install Qt License Server using the provided service wrapper application:
qt-service.exe install - Start Qt License Server:
qt-service.exe start - Check the status of the Qt License Server:
qt-service.exe status
By default, Qt License Server runs as a service in the background. Find and control the service in the Windows Services application interface.
Important: Ensure that you have the appropriate permissions. If execution or file rights are insufficient, normal operations might fail. Check also the permissions for the folder where you installed Qt License Server.
Once the Qt License Server is running in the background, the Qt License Server database is initialized and stored in the same directory as the executable file.
Important: Once Qt License Server is running, configure the server address for clients.
Read logs
Once Qt License Server is installed and running, it collects logs you can use to investigate possible errors. The location of the Qt License Server logs depends on your operating system.
For Qt License Server installed as a system service, the logs are collected by the systemd journal.
To view the full log, run:
journalctl -u qt-license-server.serviceFor example, to check only the last 100 lines, run:
journalctl -u qt-license-server.service -n 100Note: If Qt License Server is not installed as a system service, the logs are located in <\QLSRV executable root folder>/logs.
By default, the logs are located in <\QLSRV executable root folder>\logs.
For more information, see Check the logs.
Reconfigure
If you forgot to configure or need to update something, do the following:
You can find the configuration file in /etc/systemd/system/qt-license-server.service.
After making the necessary changes, save the file and run the following commands:
systemctl daemon-reload
systemctl restart qt-license-server.serviceAfter making the necessary changes to the qt-service.xml file, save the file and run the following commands:
qt-service.exe stop
qt-service.exe startNext steps
After your Offline Qt License Server instance is installed and running, see the following topics to set up and manage it:
See also Qt License Server configuration and Qt License Server command-line interface.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.