Setting up trial license - Advanced Installer Community
timmangan
Posts: 50
Joined: Fri Mar 30, 2018 1:17 pm

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 Tim,

Thank you for joining our forums.

Please make sure you are not using the semicolon delimiter character into your "zzz" string before generating the digital signature and then try again. Just check the "Computing the license digital signature" step of our "How to configure license server for my application?" tutorial.

Now, looking over our tutorial article I think we should emphasize this particularity. This is an important aspect which can be easily overlooked. Thank you for bringing this to our attention.

Also, as a side note, the purpose of the "Generate License Dialog" is to be used when the online registration fails. For instance, if the Internet connection is not available or blocked by a firewall filter, then the customer can give you his license IDs and you can manually generate the license and send it to the client via additional communication channels. Something like that.

If this is still of no help, it will be useful if you could isolate the behavior into a small sample which we can test on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
timmangan
Posts: 50
Joined: Fri Mar 30, 2018 1:17 pm

Re: Setting up trial license

Went over everything again, still no go.

I have reproduced the behavior in a new "barebones" project that I can send you as a zip file. Please specify how you'd like it sent. Attaching image capture of registration failure and fiddler trace here.
Attachments
image showing issue
image showing issue
Capture.PNG (102.11 KiB) Viewed 4111 times
timmangan
Posts: 50
Joined: Fri Mar 30, 2018 1:17 pm

Re: Setting up trial license

Followup: Have sent sample code to reproduce to the support email.

Return to “Common Problems”