Configuring HCL Z and I Emulator for Transformation with Flexera
This document describes the procedure to acquire a license for using the product ‘HCL Z and I Emulator for Transformation’ and to configure the product for connecting to a host.
Follow the instructions detailed in each of the below steps :
Setup the License Server (Flexera)
Configure the Product (HCL ZIETrans) with the License Server (Flexera)
Configure the Flexera details in License Manager application
Configure the License Manager application with the Product (HCL ZIETrans)
Copy the below link and paste it in a browser address bar to access the FlexNet login page.
Figure 1: Flexera Login
Enter the authorized login credentials to access the Producer Portal Home page.
Search for the required product by specifying the relevant keywords in the QuickSearch section.
below image shows a keyword entered in the search field, to find
“HCL Z and I Emulator for Transformation”.
Figure 2 : Producer Portal Home (QuickSearch for Products)
If the Search is successful, all the product packages relevant to the entered keyword will be displayed in the Search results.
Figure 3 : Package Products (Search Results)
In the “Create A product” panel that follows, click on the “Download Packages” tab to view and download the required packages.
The below image shows the options selected for downloading ‘HCL_CLLS’.
Figure 4 : Package Products (Download Packages)
Click on HCL_CLLS to download the ‘HCL Common Local License Sever 1.0’ package to a User defined location.
Click on feature tab and download HCL_ZIETrans to download all the packages related to ZIETrans.
Open the downloaded package.
For the product HCL Z and I Emulator for Transformation (ZIETrans), the downloaded package will be ‘HCL_ZIETrans’, Extract the package you will get the Zietrans Folder.
Figure 5 : HCL ZIE for Trans product package
Extract the ZIETrans Product Installer from the ZIETrans folder.
In the HCL_CLLS package that is selected, the zipped packages shown in the below image are present. Download the relevant installer, based on your OS specification to connect to the Flexera License server.
Figure 6 : Installer Packages in HCL CLLS
For Windows users, download the HCL_CLLS_WIN_1 package.
For Linux users, download the HCL_CLLS_LNX_1 package.
After the download is completed, extract the package which contains the required jars and .bat files.
The flexnetlsadmin.bat file that is used to connect to the Flexera License server is present in : [Extracted CLLS package]\enterprise.
Once the installers are available, follow the steps given in the below link to configure the Flexera License Server.
Note : You can choose the Server deployment mode as Local or Cloud while setting up the license server.
Figure 7 : Server deployment mode
After completing the License server deployment, you will get a custom Flexera URL.
Use your custom URL to replace the following link given in the upcoming procedures.
<https://[license server host]/api/1.0/instances/[license server ID]>
For further queries related to Flexera setup, contact the HCL Customer support team using the following link : https://hclpnpsupport.hcltech.com/csm
To configure HCL ZIE for Trans with the License Server, follow the below steps.
Install any open source key tool (like Open SSL or Java key tool) in the machine for key-pair generation.
Configure the Key Tool
Generate the Key-pairs
Upload the public key to Flexera License server
Below is the detailed procedure to Configure ZIETrans with Flexera server using Open SSL:
After installing Open SSL, copy the open SSL folder under C:\ drive.
Configure the Open SSL path in the system environment variables as shown:
Figure 8 : Configuring the Open SSL under system environment variables
The Public/Private key pair generated is used for secure communication. The key pair should be in "RSA 2048-bit" format. The private key format should be "pksc8", and that of the public key should be "DER" format.
The following is the procedure to generate key-pairs using OpenSSL:
(Note: if your using any other third party tool for key-pair generation, you need to follow the instructions provided by them.)
Generate private key.
Open Command Prompt as an Administrator and enter the Open SSL path to change the path from the root directory (C:\OpenSSL\bin). Enter the below command, to generate the private key under C:\OpenSSL\bin,
openssl genrsa -out private_key.pem 2048
Get the public key.
After the private key is generated, enter the below command to generate the public key also in the same path.
openssl rsa -in private_key.pem -pubout -outform DER -out public_key.der
Convert private key to pkcs8 format to use it.
The private_key.pem file should be converted into pcks8 format for strong encryption. To do this conversion, enter the below command,
openssl pkcs8 -topk8 -inform PEM -outform PEM -in private_key.pem -out private_key_pkcs8.pem -nocrypt
Figure 9 : Generated keys under C:\OpenSSL\bin
To connect to the Flexera server, the Extracted CLLS package should be available in the local machine. Navigate to the Flexera folder in the local machine. (D:\ [Extracted CLLS package]\enterprise)
Open the Command Prompt and enter the below command,
flexnetlsadmin.bat -server <https://[license server host]/api/1.0/instances/[license server ID] -authorize admin [license sever admin password] -uploadPublicKey [local path to public key (in DER format)]>
flexnetlsadmin.bat -server https:// hclsoftware.compliance.flexnetoperations.com/api/1.0/instances/FED321CBA -authorize admin adminpwd -uploadPublicKey C:\temp\public_key.der
If the public key is successfully uploaded to the Flexera server using the above command, you will receive an acknowledgement as “Client public key has been uploaded successfully” from the Flexera server.
(For any queries related to the Flexera setup, contact the HCL Customer support team using the following link : https://hclpnpsupport.hcltech.com/csm)
Enter the below Flexera server command to check the feature description and the total no. of licenses configured for that feature.
C:\Users\Admin\Desktop\Flexera\Others\[Extracted CLLS package]\enterprise\flexnetlsadmin.bat -server <https://[license server host]/api/1.0/instances/[license server ID] / -authorize <username> <password> -licenses -verbose>
C:\Users\Admin\Desktop\Flexera\Others\[Extracted CLLS package]\enterprise\flexnetlsadmin.bat -server https:// hclsoftware.compliance.flexnetoperations.com/api/1.0/instances/FED321CBA -authorize admin adminpwd -licenses -verbose
Figure 10 : Flexera server command to check Feature description & count of configured licenses
The User must install HCL ZIETrans and Create a ZIETrans project in the Toolkit
Configure the supported Application server like WAS, WebSphere Liberty Profile or JBOSS in the toolkit
Configure the “Flexera Server URL” , “Private key path” and “BorrowInterval” time in the runtime .properties file of the project .ear. If the user wants to run his application in debug mode he need to configure the same in runtime-debug .properties file.
Figure 11 : Configured Flexera in runtime.property file
flx_PrivateKey_Absolute_Path= Drive\: \\Path\\PrivateKey.pem
For example :-
flx_ServerURL= https://[license server host]/api/1.0/instances/[license server ID] /api/1.0/instances/Feature ID
For example :-
This parameter contains a numeric value followed by a unit-suffix letter, for example, flx_BorrowInterval value of 10h denotes 10 hours. The valid values for the unit-suffix letter for this parameter are : s, m, h, d and w (that indicates seconds, minutes, hours, days and weeks respectively).
If the user does not set a value for this parameter, the default value is set to 30 minutes.
This parameter is set in the license request to return license automatically after the borrow-interval is reached and will be useful in ensuring that any abnormal termination of ZIETrans will result in automatically returning the license.
Run the project on the configured server and user can use preferred browser
Execute the Flexera command and check the consumed licenses.
User can follow the above steps to launch his applications and connect to the configured host.