Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space LSDEV and version 2021.1

...

Enabling HASP Key on Windows

  1. Stop Tomcat Server.
  2. Open PSTRootConfig.xml configuration file Run the stopLS.bat script located in the <TOMCAT>/ LicenseServer/conf directory.
  3. Add the following entry in the <root-config> node and save the configuration file:
    <external-lock-enabled>true</external-lock-enabled>
  4. Plug the USB HASP key into your machine and wait for the drivers to install.
  5. Start <LS_INSTALL>/app directory to stop Tomcat Server.
  6. Open stopLS.bat file in an editor and add the -DuseExternalLock=true argument to the JAVA_OPTS configuration:

    Code Block
    set JAVA_OPTS=%JAVA_OPTS% -DuseExternalLock=true 
  7. Run the startLS.bat script located in the <LS_INSTALL>/app directory to start Tomcat Server.

When the USB HASP key is removed, the machine ID will revert to the original ID. As a result, License Server will no longer provide licenses.

Enabling HASP Key on Linux

  1. Stop Tomcat Server.
  2. Open PSTRootConfig.xml configuration file Run the stopLS.sh script located in the [TOMCAT<LS_HOME]/ LicenseServer/conf directory. 
  3. Add the following entry in the <root-config> node and save the configuration file:
    <external-lock-enabled>true</external-lock-enabled> 
  4. Locate the udev.rules file responsible for USB devices and modify the INSTALL>/app directory to stop Tomcat Server.
  5. Open stopLS.sh file in an editor and add the -DuseExternalLock=true argument to the JAVA_OPTS configuration:

    Code Block
    export JAVA_OPTS=%JAVA_OPTS% -DuseExternalLock=true 
  6. By default, USB devices are configured with 66* permissions, but USB HASP keys require 666. Locate the udev.rules file responsible for USB devices on your Linux distribution and modify the usb_device entry to use MODE="0666". On Ubuntu 18.04, for example, the configuration would be set in the 50-udev-default.rules file located in the /lib/udev/rules.d/ directory. 
  7. Execute the following command:

    Code Block
    udevadm control --reload-
    rules 
    rules 
  8. Plug the USB HASP key into your machine. If the USB HASP key is already plugged in, run the following command as the root user to programmatically insert key:

    Code Block
    udevadm
    trigger 
    Alternatively, you can restart the operating system. Start Tomcat Server 
     trigger 
  9. Run the startLS.sh script located in the <LS_INSTALL>/app directory to start Tomcat Server. 

When the USB HASP key is removed, the machine ID will revert to the original ID. As a result, License Server will no longer provide licenses.