Closed shushu789 closed 5 months ago
@shushu789 what you stated looks true to me:
An additional method in the validation chain could be to phone home using a network time protocol and a built-in/configurable tolerance.
@markadrake Thanks for your reply, I implemented this problem myself using NTP time, and it works well now
Hi @shushu789,
Thanks for bringing this up. I added an extenstion in v1.1.9 to use custom DateTime. Now you can do something like this:
var serverTime = GetServerTime();
var validationFailures = license.Validate()
.ExpirationDate(systemDateTime: serverTime)
.When(lic => lic.Type == LicenseType.Trial)
.And()
.Signature(publicKey)
.AssertValidLicense();
Hello, this is a great library, it's great. But I want to know whether the verification mechanism of the license expiration time can be enhanced to add verification with the Internet time, because if the user modifies the local system time, the license can be made valid forever. If I missed something, please forgive me. Thanks