Every licence carries proof your application checks.
The licence signature ties the product, customer, dates, machine binding, and typed claims to the key in your environment. Your application verifies that proof with the public key it already holds.
Online checks use signed receipts as well. TLS protects the request in transit; the receipt proves which key answered.