About License Server

License Server enables you to manage floating licenses for SOAtest, Virtualize, and CTP. License Server is usually installed as part of a Parasoft DTP deployment, but the standalone version of the application ships with CTP if DTP is not deployed in your organization. The standalone License Server ships as a .war file that you can deploy into new or existing Tomcat servers. Refer to the Parasoft License Server documentation for usage configuration information not covered in this documentation.

For details on adding licenses, see the CTP installation section

Do I need the Parasoft License Server Web Application?

The Parasoft License Server web application is only needed if:

  • You want to use License Server to manage floating licenses for Parasoft SOAtest and Parasoft Virtualize, and
  • Parasoft DTP will not be deployed within the organization

Prerequisites

  • The PSTSec database must be running and may require that the -Xmx parameter be changed to 1024m (see Installing Parasoft User Administration).
  • Linux or Windows (64-bit only)
  • Tomcat 8.5
  • CTP 3.x or later
  • Java 8
  • The Java_JRE variable must be set (required by the Tomcat server)

License Server Installation and Configuration

  1. If you are running License Server on Windows, start the Tomcat server under a user account with administrator privileges. Administrator privileges are not required when running on Linux.
  2. Copy licenseserver.war file into the <tomcat installation>/webapps folder.
  3. In a browser, go to http://<host>:8080/licenseserver.

  4. Log into License Server using the default username and password for Parasoft User Administration (admin/admin). If PSTSec is on a different server than the machine hosting License Server, see Connecting to Parasoft User Administration in order to log in. 
  5. Enter the licensing information provided by your Parasoft representative for each product you want to manage with License Server:
    1. Enter the Expiration date of your license. 
    2. Copy and paste the license code in the Password field or copy and paste the entire license password line as it was sent to you in the open text field.
    3. Click Set license.

Restart Tomcat if you need to change License Server's port number or make any other configuration changes after the initial set up. Remember to restart with administrator privileges if you are running License Server on Windows.

Connecting to Parasoft User Administration

You will need to manually configure License Server to connect to User Administration (PSTSec) if User Administration is deployed to a different Tomcat server than the current CTP installation or if the Tomcat server is not running on port 8080.

  1. Open the PSTSecConfig.xml configuration file located in the /LicenseServer/conf/ directory and set the host and port for the user administration service, for example:

    <remote-authentication>
       <enabled>true</enabled>
       <host>localhost</host>
       <port>8080</port>
    </remote-authentication>
  2. Restart Tomcat.

LDAP Configuration

See Configuring LDAP for instructions on how to connect to an LDAP server.

HASP Key Support

You can install Parasoft software on different machines and use a USB HASP Key to provide a machine ID when connecting to License Server. The USB dongle provides a stable machine ID for License Server so that the rest of the hardware can be changed without needing to request new licenses from Parasoft. Contact your Parasoft representative for additional information. 

Enabling HASP Key on Windows

  1. Stop Tomcat Server.
  2. Open PSTRootConfig.xml configuration file located in the[TOMCAT_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. Plug the USB HASP key into your machine and wait for the drivers to install.
  5. 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 located in the [TOMCAT_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 usb_device entry to use MODE="0666"
  5. Execute the following command:
    udevadm control --reload-rules 
  6. 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:
    udevadm trigger 
    Alternatively, you can restart the operating system. 
  7. 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.

Using License Server

Refer to the Parasoft License Server documentation for usage and additional configuration information.

  • No labels