Setting up trial license - Advanced Installer Community
owenclements
Posts: 1
Joined: Mon Aug 05, 2019 10:32 am

Setting up trial license

I'm having difficulty in getting post-trial registration to work. The scenario would be a trial with maintenance period. The trial portion appears to be successfully set up in the AIP, in the application, and in the server PHP. I've used code based off of the samples.

On the server I have created a database table with the ID and Maintenance Plan end date. The exported (protected) PEM containing the private key is also available at the server. In the app registration I enter an ID, the server proccess this (recognizing the ID in the table) and it outputs the response in the form of

ID=xxx;MP=3/30/2019;SIGN=zzz

where zzz is the "ID=xxx;MP=3/30/2019" portion encrypted with the private key. This return is verified by using fiddler at the app end. But the app complains that "The registration key is invalid".

It is not clear to me what the purpose of "Generate License Dialog" is, but if I enter the same ID and MP date in that tool for the project it seems to produce a different signature. Clearly I am missing something here. Any ideas on what it might be or additional troubleshooting to be done?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Setting up trial license

Hello and welcome to our forums,

This may happen if you are using semicolon character (;) to separate the license elements in the string you need to compute the digitally signature for.

Please note that the zzz should be the "ID=xxxMP=3/30/2019" string encrypted using your private key. When creating this string to compute the digitally signature for you should not use the semicolon character to separate the license elements. Also make sure it is a UTF-16LE encoded string.

However, the reply with the license content including the digitally signed string must include the semicolon character in the license string, e.g.

Code: Select all

ID=xxx;MP=3/30/2019;SIGN=zzz
Just make sure you carefully follow our "Configure a license server for my licensing library" and let us know if this still does not help.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”