A license that works offline
Software shipped into air-gapped environments, where online licensing cannot work. A signed license file, in production for over a year.
Written
The situation
Proprietary software had to be shipped into air-gapped environments, without internet access, admin privileges or Docker. Online licensing could not work there. The vendor still needed to know who had licenses, prevent casual copying, and support renewals.
What was wrong
Traditional licensing phones home, and nothing in those rooms could. The threat model was modest. A determined attacker with full control of the host can always bypass a local check. The goal was control of legitimate distribution, and support, with no network at all.
What changed
A license file, cryptographically signed. Each one carried a customer identifier, an expiry date, feature flags and usage quotas. The software validated it locally with an embedded public key. A license ended when the time ran out or the quota was used up. Subscriptions, usage-based pricing and hybrids all worked without changing the system.
Renewal was offline too. On expiry the software entered a grace period. The customer asked for a new file. The vendor signed one and sent it by secure file transfer, and the customer replaced the old file.
The signatures stopped casual copying and tampering. They did not stop someone with full host control from changing the system time or patching the application. Files could still be copied between machines. That was the accepted trade: raise the effort of abuse, keep legitimate use easy.
The system has been in production for over a year, handling thousands of license validations across hundreds of deployments. License files can be inspected for support without a network.