-
|
We’re currently implementing a licensing setup in NetLicensing and need clarification on the best way to configure modules and validation rules. Initially, we faced some issues setting up the Node-Locked license module — we wanted it to be locked to our own server using the CPU serial number (as explained in the docs) but weren’t sure how to explicitly set this up in the NetLicensing Management Console. We need a licensee that:
Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
NetLicensing's Node-Locked licensing model binds your product to a node-specific secret, such as a hash of hardware-related data like CPU serial number, MAC address, or other unique hardware identifiers. The model operates in two distinct modes that you can configure at the product module level: Client Mode (Recommended for CPU Serial Number Locking)In this mode, the nodeSecret doesn't need to be stored in advance. When your server makes its first validation request with the CPU serial number as the nodeSecret parameter, NetLicensing automatically stores it if the number of already-stored secrets is below the quota. This is ideal for your use case where you want to lock the license to your server's CPU serial number. Predefined ModeThe secret is generated by you (the vendor) and explicitly stored in the license property before the first validation. Validation only succeeds if the provided nodeSecret matches one of the pre-stored values. Configuration Steps in the Management ConsoleHere's how to set up node-locked licensing in the NetLicensing dashboard: Step 1: Configure the Product ModuleNavigate to Manage → Products and select your product, then access the relevant Product Module. When creating or editing the Product Module, you need to:
For your server scenario with CPU serial number locking, select Client mode. Step 2: Create License TemplatesNode-locked licensing requires one or more license templates of type QUANTITY. Here's what to configure:
The quota property determines how many unique hardware identifiers (CPU serial numbers) can be bound to this license. Step 3: Create and Configure LicensesWhen you create a license for a licensee (customer):
Important for Client Mode: You do NOT need to manually set nodeSecret properties (nodeSecret0, nodeSecret1, etc.) in Client mode. These will be automatically populated when your server performs its first validation request. For Predefined Mode (if needed): You would need to manually add custom properties to the license via the REST API. Using the License Update endpoint, you can add nodeSecret0, nodeSecret1 properties as custom properties through POST parameters: Implementation in Your ApplicationYour server application needs to: Generate a unique hardware identifier (CPU serial number). Note that NetLicensing does not include machine ID or fingerprint generation capabilities - you must implement this yourself. During validation, pass the CPU serial number as the In Client mode, on the first validation:
Key Points to RememberThe quota property on the license determines how many different CPU serial numbers can be locked to that license. When multiple QUANTITY licenses are active, the total quota is the sum of all their individual quotas. Properties are stored as nodeSecret0, nodeSecret1, etc., where N ranges from 0 to (quota-1). In Client mode, the dashboard won't explicitly show a field to enter the CPU serial number - this is by design, as it's captured automatically during the first validation. For security, ensure your CPU serial number generation method is consistent and difficult to fake. Additional ResourcesThe NetLicensing REST API documentation and Node-Locked wiki page also provide additional technical details and code examples.
|
Beta Was this translation helpful? Give feedback.
NetLicensing's Node-Locked licensing model binds your product to a node-specific secret, such as a hash of hardware-related data like CPU serial number, MAC address, or other unique hardware identifiers. The model operates in two distinct modes that you can configure at the product module level:
Client Mode (Recommended for CPU Serial Number Locking)
In this mode, the nodeSecret doesn't need to be stored in advance. When your server makes its first validation request with the CPU serial number as the nodeSecret parameter, NetLicensing automatically stores it if the number of already-stored secrets is below the quota. This is ideal for your use case where you want to lock the license to yo…