44 ms·
Ask HN: Best way to license Java application?
I'm building a Java application, and basically delivering a WAR file for the customer to run on their own server.
I'm thinking about licensing and came up with a simple solution to sign a simple text file that says when the license expires.
The crypto is sound, but I'm worried that someone would just reverse the WAR and changes the code that checks the file signature, making all the scheme useless.
Is there a solution for this kind of problem?
- ezekg 9y agoIf the server has internet access, you could use a third-party service like https://keygen.sh https://keygen.sh to handle licensing. You could validate their license periodically e.g. on application boot, etc. and even lock it down to only be valid on a single machine/server via domain/IP (or some other form of fingerprinting). I'm the founder of Keygen, so happy to answer any questions and help out in any way!