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 

generating licensekey programmatically on remote server

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



Joined: 14 Apr 2013
Posts: 5

PostPosted: Sun Dec 15, 2013 5:16 pm    Post subject: generating licensekey programmatically on remote server Reply with quote

HI,

I want to allow the user of my app (webapp (asp.net) hosted on a remote server using IIS to generate a license key.
I use your authentification webservice on the mentioned server to validate the license keys. The webservice is confiured to use a standallone db (access)
So far I created the license keys via licensetracker on my local computer and used 'Authentication-> configure server' in license tracker to update the server standallone db with newly created license keys.

As mentioned above now I want to have an automated way of creating the license keys.

I used the sample code from the cmdlinekeygenerator directory and that code works fine as long as I use a licensetracker db (.eg. on my local system).
On the server there is no license tracker db, on the remote server there only exists a standallone db.
Therefore all keys generated on the remote server fail when I try to validated them. I assume this is due to the fact that the standallone db does not really store license keys.

To get the key generation to work, I copied my full license tracker db to the remote server and have the authentication webservice access this db instead of a standallone db. This works, but now the full license tracker db (including the passwords for my products) resides on the remote server, and I want to avoid that.

Here my question: Is it at all possible to generate (and store) license keys generated on the remote server using a standallone db or do I really NEED TO use a full blown license tracker db on the remote srever to achieve my goal.

Hope one can help !
Best regards
Hans-Juergen
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Dec 16, 2013 9:48 pm    Post subject: Reply with quote

You can generate license keys without having access to the license database using the second technique described in the following FAQ on generating license keys:

http://www.infralution.com/phpBB2/viewtopic.php?t=1706

You still need to somehow import the license keys back into your License Tracker database somehow - potentially by writing the sales and license key data to an XML file and using the Sales Import mechanism in License Tracker.

An alternative may be to use our IPN.NET (www.infralution.com/ipn.html) product. This allows configuration of a separate database on your web server that can be synchronised with the main license tracker database and data imported directly (similar to authentication data).

Note that if you concern is security then both approaches above require putting either the database or the parameters that allow license key generation somewhere you website code can access them and so pose more of a risk then keeping license key generation entirely locally.
_________________
Infralution Support
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