Multi Landing Page CMS — License Generator
==========================================

REQUIREMENTS
  PHP 8.1+  with the sodium extension enabled.

FIRST-TIME SETUP
  1. Run: php generate.php keygen
     This creates keys/private.key and keys/public.key.
     KEEP keys/private.key SECRET. Never commit it to version control.

  2. Copy the public key hex value into the CMS:
       - Set LICENSE_PUBLIC_KEY=<hex> in cms/.env
       - Update config/license.php 'public_key_hex' value

ISSUING A LICENSE
  php generate.php issue \
    --customer-name="Acme Ltd" \
    --customer-email="admin@acme.com" \
    --domain="acme.com" \
    --expires="2027-12-31"

  The .lic file is saved to issued/

VERIFYING A LICENSE
  php generate.php verify issued/acme-ltd-XXXXXXXX.lic

SECURITY NOTES
  - The private key NEVER leaves this tool. It is never in the CMS package.
  - License files are signed with Ed25519 (libsodium). They cannot be forged
    without the private key.
  - The CMS only holds the public key and verifies signatures at activation time.
  - Back up keys/private.key securely (password manager, encrypted vault).
    Losing it means you cannot issue new licenses without regenerating the keypair
    and updating all existing CMS installations.
