Skip to content

Use Liveness V1#

Liveness V1 requires:

  • set up the Liveness V1 license
  • enable the use of Liveness V1 in the Configurator settings
  • run the Liveness V1 container
  • reload API service

Skip these steps if you are going to use Liveness V2.

Note! Do not perform the actions below before LP license key activation!

Liveness V1 license#

Install HASP utility for Liveness V1#

This action is performed on server different from LP license server.

Go to the HASP directory.

cd /var/lib/luna/current/extras/hasp/

Install HASP utility on you server.

tar -xvf aksusbd-7.103.1.tar
cd aksusbd-7.103.1
./dinst
systemctl status aksusbd

Add configuration file to the utility#

Note! You do not need to perform this action if you already have the configured INI file for the HASP utility.

Copy the INI file with configurations

rm -rf /etc/hasplm/hasplm.ini
cp /var/lib/luna/current/extras/hasp/hasplm.ini /etc/hasplm/

Add LP vendor library#

Copy LP vendor library (x32 and x64). This library is required for using LP license key.

Note! This action is performed if you install both keys for LP and Liveness V1 on a single server.

cp /var/lib/luna/current/extras/hasp/haspvlib_30147.so /var/hasplm/
cp /var/lib/luna/current/extras/hasp/haspvlib_x86_64_30147.so /var/hasplm/

Restart the utility

systemctl restart aksusbd

Create fingerprint for Liveness V1#

Go to the HASP directory.

cd /var/lib/luna/current/extras/hasp/

Add permissions to the script.

chmod +x Liveness_FP_tool.dms

Run the script to create a fingerprint.

./Liveness_FP_tool.dms f fingerprint_107506.c2v

The fingerprint is saved to file "fingerprint_107506.c2v".

Send the file to VisionLabs. You license key will be created using this fingerprint.

Add license file manually using user interface#

  • Go to: :1947 (if access is denied check your Firewall/ SELinux settings (the procedure is not described in this document);

  • Select the Update/Attach at the left pane;

  • Press the "Select File..." button and select a license file(s) in the appeared window;

  • Press the "Apply File" button.

Adding a license file
Adding a license file

Specify license server address for Liveness V1#

Specify your license service IP address in the configuration file in the directory "/var/lib/luna/current/example-docker/hasp_redirect/". Change address to the HASP server in the following documents:

vi /var/lib/luna/current/example-docker/hasp_redirect/hasp_107506.ini

Change the address in "hasp_107506.ini" file:

serveraddr = <HASP_server_address>

The "hasp_107506.ini" file is used by the Liveness V1 service upon its container launch.

HASP_server_address - the IP address of the server with your HASP key. You must use an IP address, not a server name.

Liveness V1 service activation#

The Liveness V1 service is disabled by default.

You can enable Liveness service following these steps.

Get Liveness license#

The Liveness feature should be set to "1" in your LUNA PLATFORM HASP key. This feature is set by VisionLabs engineers when the license is requested.

The Liveness service also requires an additional Liveness license key for activation.

See section "Liveness V1 license".

Enable Liveness in Configurator#

Enable the Liveness service utilization in the Configurator service:

  • Open the Configurator user interface.
  • Set the "liveness": true in the "ADDITIONAL_SERVICES_USAGE" setting.
  • Save changes using the "Save" button

See section "Optional services usage" for more details.

Launch Liveness#

Make sure that you have specified the Liveness license server address in the "hasp_107506.ini" file. See section "Specify license server address for Liveness"

Use the following command to launch the service:

docker run \
-v /etc/localtime:/etc/localtime:ro \
-v /var/lib/luna/current/example-docker/hasp_redirect/hasp_107506.ini:/home/luna/.hasplm/hasp_107506.ini \
--cap-add=SYS_PTRACE \
--name=luna-liveness \
--restart=always \
--detach=true \
--network=host \
dockerhub.visionlabs.ru/luna/idface-server-eval:v.1.11.0

Restart API service#

It is recommended to restart the API service if it was already running. An example of the command:

docker restart luna-api