Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multiple Encrypted Licences

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
DBartlett



Joined: 16 Sep 2019
Posts: 14
Location: Uki, NSW, Australia

PostPosted: Fri Sep 20, 2019 2:08 am    Post subject: Multiple Encrypted Licences Reply with quote

Is it possible to use encrypted licences (not authenticated) for multiple sales? The scenario is a corporation purchasing 100 licences. Knowing the issues with IT departments, I do not want a floating licence server, nor do I want individual users to access the internet for authorisation. I am also not concerned about the absolute exact number being used (+10%) as I know that corporations are fanatical about unlicenced software on users' computers. Even "free" products like WinZip are not free for commercial use, and are routinely removed from all computers. I want it to be as easy as possible for users and software managers to access a licence, but clearly don't want the users to take the product/licence home and pass it around. Thanks, Dale
Back to top
View user's profile Send private message Visit poster's website
DBartlett



Joined: 16 Sep 2019
Posts: 14
Location: Uki, NSW, Australia

PostPosted: Fri Sep 20, 2019 2:39 am    Post subject: Multiple Encrypted Licences Reply with quote

I must add that our product is a plug-in that is tied to a master application (AutoCAD). This has a unique serial number, but in a corporate environment is a network licence which shares a single serial number across all installations. My licence could be tied to this serial number which would stop it being passed to others. So how do I pass the Serial Number to the Licence Validator? I have read on this forum that it is not possible to decrypt/extract data embedded in the licence file. Dale
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Sep 25, 2019 1:25 am    Post subject: Reply with quote

You control the number of machines that an Authenticated License can be installed on. However if you don't want to use Authentication for individual users then a Floating License Server (which itself uses Authenticated licensing) is really the only option to control the number of users using a given license.

If it is sufficient to lock the license to some other characteristic eg the AutoCAD serial number then you can put the Serial Number in the ProductInfo of an EncryptedLicense when you generate it. You need your users to provide you with their serial number before generating the license. Your application can retrieve the ProductInfo from the license and check that it matches the AutoCAD serial number.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
DBartlett



Joined: 16 Sep 2019
Posts: 14
Location: Uki, NSW, Australia

PostPosted: Thu Sep 26, 2019 4:46 am    Post subject: Reply with quote

To be clear, I wish to use Encrypted Licences not Authenticated. I note that the CustomGenerator states that it will "generate ProductInfo", but the rest of the application refers to "AuthenticationData". Can the CustomGenerator add Productinfo to the Licence File?
/// Defines a customer generator used to generate ProductInfo for the License Tracker.
/// 1. Compile this project and place the CustomGenerator.dll in the License Tracker directory
/// 2. Edit the Sample Authenticated Product in License Tracker and enter "CustomGenerator.MyGenerator, CustomGenerator" into the Custom Generator field (in the Key Generation tab)
/// 3. Create a sale of the Sample Authenticated Product and generate a license key. This generator will then be used to generate the AuthenticationData for the key.
/// 4. Run the Authentication Service
/// 5. Build and run the CustomAuthenticatedApp project and install the license key
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Sep 26, 2019 4:50 am    Post subject: Reply with quote

Yes a custom generator can be used to set the ProductInfo for license keys. However this can only be done when generating new keys - it can't be updated for existing keys (like AuthenticationData can be).
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
DBartlett



Joined: 16 Sep 2019
Posts: 14
Location: Uki, NSW, Australia

PostPosted: Thu Sep 26, 2019 5:55 am    Post subject: Reply with quote

Thank you, Do you have a code snippet to share?
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Sep 26, 2019 11:10 pm    Post subject: Reply with quote

Her is some minimal code that sets the ProductInfo to be the last name of the customer:

Code:

   public class MyGenerator : ICustomGenerator
   {
        public void GetLicenseKeyData(CustomGeneratorData data, ICustomer customer, ISale sale)
        {
            data.ProductInfo = customer.LastName;
        }

        public bool SupportsGetLicenseKeyData()
        {
            return true;
        }

        public void UpdateAuthenticationData(CustomGeneratorData data, ICustomer customer, ISale sale)
        {
        }

        public bool SupportsUpdateAuthenticationData()
        {
            return false;
        }

    }

_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
DBartlett



Joined: 16 Sep 2019
Posts: 14
Location: Uki, NSW, Australia

PostPosted: Tue Oct 01, 2019 5:14 am    Post subject: Reply with quote

Thank you. I have this prototyped and functioning now.
Back to top
View user's profile Send private message Visit poster's website
DBartlett



Joined: 16 Sep 2019
Posts: 14
Location: Uki, NSW, Australia

PostPosted: Thu Oct 03, 2019 12:23 am    Post subject: Reply with quote

I am successfully using this method to generate and return Productinfo, but can you please confirm:
The sample CustomGenerator uses LicenseData to store:
LicenseData.LicensedTo
and
LicenseData.NumProcessors
as well as
LicenseData.Productinfo
It seems to my testing that only ProductInfo is able to be accessed from an Encrypted license. My assumption is that the other properties are only available if using an Authenticated license. Is this correct?
Thanks again. Dale
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Oct 04, 2019 7:31 am    Post subject: Reply with quote

The sample project stores that information in the AuthenticationData. It is possible to store more information in the ProductInfo - however this increase the size of the generated license keys (because the ProductInfo in encoded into the actual key). If you have a large amount (eg more than 20 characters) of data than using ProductInfo is not a great solution because the keys get unworkably long
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
DBartlett



Joined: 16 Sep 2019
Posts: 14
Location: Uki, NSW, Australia

PostPosted: Fri Oct 04, 2019 9:22 am    Post subject: Reply with quote

Thank you. This has answered my question. For Encrypted licences, only the ProductInfo is accessible from the licence file.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group