Reputation: 711
With reference to the answer of this question I can not understand how can the software licensing scheme works if the Private Key is kept on the license server and the public key is shipped in the application executable, and not vice verse.
I'm trying to do the following software licensing scheme:
How can the application decrypt this license text if it does not have the private key but the public key?
Thanks!
EDIT:
Upvotes: 2
Views: 2942
Reputation: 10613
I don't really see the need for all this stuff.
Why not simply establish a connection to the server at validation time, have the server generate a file with all the parameters you want in it (in plain text even) and then have the server sign that file and return it to the software?
The client can read the file, and then simply validate te signature using one of the many digital signature algorithms that are out there.
Upvotes: 3
Reputation: 887767
The application should store its details in plain text.
When registering, the server should sign those details (including machine identification) using the private key.
Each time the application starts, it should verify that signature using the public key.
Upvotes: 5