How to validate the license with client machines

217 views
Skip to first unread message

Shaik Zainul

unread,
Aug 4, 2020, 5:14:57 AM8/4/20
to licensecc users

Hi Team,
I am new to open-license-manager, currently i have setup open-license-manager software in on VM1 (openlm-master) and one more VM2 (openlm-client).
My Environment : Both VMs are CentOS Linux release 7.7.1908
In VM1 i have installed open-license-manager by following link
https://github.com/open-license-manager/open-license-manager

[root@openlm-master open-license-manager]# ls projects/DEFAULT/include/licensecc/DEFAULT/
licensecc_properties.h  public_key.h
[root@openlm-master open-license-manager]# /root/openLM/open-license-manager/install/bin/lccgen license issue --valid-from 20200804 --valid-to 20200903 -s 08:00:27:57:de:bd -p /root/openLM/open-license-manager/projects/DEFAULT -o /root/openLM/open-license-manager/projects/DEFAULT/licenses/openlm-client.lic
License written
[root@openlm-master open-license-manager]#
[root@openlm-master licenses]# ls
openlm-client.lic
[root@openlm-master licenses]# less
Missing filename ("less --help" for help)
[root@openlm-master licenses]# cat  openlm-client.lic
[DEFAULT]
lic_ver = 200
client-signature = 08:00:27:57:de:bd
valid-from = 2020-08-04
valid-to = 2020-09-03
sig = I2pyXxvib0V2/AWPxzgrl+XiZRZbBd80SNbPC+EUS9sj39+5GziW65jjdDqFtUUSGmJiGtpcwzmHYwtyThfzoD/+kq2ZtS/lsoevd4uwLge4Ws5sFILPMLwjVF8Z83RtBeWsnjGDqG16lMBTqVcZCZrjHz3KSbG1mpWHfhM++q0=

[root@openlm-master licenses]#
Note: Here i took VM2 MAC Address to generate license with --valid-from and --valid-to
[root@openlm-master open-license-manager]# tree projects/
projects/
└── DEFAULT
    ├── include
    │   └── licensecc
    │       └── DEFAULT
    │           ├── licensecc_properties.h
    │           └── public_key.h
    ├── licenses
    │   └── openlm-client.lic
    └── private_key.rsa

5 directories, 4 files
[root@openlm-master open-license-manager]#

Is that correct way to generate license file from VM1?
Here i want to create and generate/renew the license for VM2 using open-license-manager from VM1.
Please guide me what are the steps do i need to follow on VM1 and VM2 now.

Regards,
Zain

Shaik Zainul

unread,
Aug 6, 2020, 4:57:34 AM8/6/20
to licensecc users
Hi All,

Please help me out, how to connect a client to a License Server.

Regards,
Zain

zainu...@gmail.com

unread,
Aug 7, 2020, 4:00:33 AM8/7/20
to licensecc users
Message has been deleted

licensecc users

unread,
Aug 7, 2020, 4:07:57 AM8/7/20
to licensecc users

Hi Zain... 
sorry to disappoint you but licensecc is for local use only. There is no license server.

It isn't impossible to implement the code to download licenses from a server but it has to be done from scratch. It's one of the features planned in future though.
This library is a one-man project + some contributors, so it's kind of evolving slowly. If you want to contribute feel free to post your implementation. There is a hierarchy of classes called LicenseLocator. You can start looking there...

Gabriele

licensecc users

unread,
Aug 7, 2020, 4:24:46 AM8/7/20
to licensecc users
Hi Zain,

The current process to generate a license is the following

1) download and install open-license-manager on vm1
2) generate a project corresponding to the name of the software you want to add licenses to. If you don't know a project "DEFAULT" will be made for you
3) find the executable lccinspector
4) copy lccinspector to vm2 and run in there generating an hardware id (also called `client-signature`).
5) generate license on vm1 using the client-signature of vm2 see: http://open-license-manager.github.io/open-license-manager/usage/issue-licenses.html use the parameter `--client-signature `

Shaik Zainul

unread,
Aug 13, 2020, 1:55:22 AM8/13/20
to licensecc users
Hello ,

Thanks for your response, 
Actually i am planning to use open-license-manager for 1 master +1 slave only , here my code will /opt/project and its have some custom commands.
(currently i have generated license in single machine with MAC address , valid from, valid to parameters)
My question is that 
1. how can we identify and validate license in single machine (which means, master have license server and i need to control master ).  
2. Else license server should be separate machine and we need to generate license for master + slave machines - here how can we identify and validate license.
3. Once we validated license, then only my custom command should run. how can i integrate open-license-manager with my project folder.
For example: if you run intel psxe command "icc --version" here it will validate license and it will give the version information, if the license is expired it will ask for check validity and do renewal. 

How can we do this kind of procedure, please guide me or share any template/link for identify and validate license on single machine.

Regards,
Zain
Reply all
Reply to author
Forward
0 new messages