Signing, licensing, and security
Verify signatures
Create release keys in a separate trusted environment. Keep the private key outside the project tree, build worker, and executable. Deliver the verification key separately through a trusted channel:
php bin/localzet-packager keygen /secure/release.key /secure/release.pub
php bin/localzet-packager sign ../dist/my-application /secure/release.key
php bin/localzet-packager verify ../dist/my-application /secure/trusted-release.pub
The signature binds the SHA-256 hashes of the executable, metadata, and SBOM to an Ed25519 key. Successful verification proves bundle integrity and possession of that key; it does not prove source safety, key-owner authorization, or build-environment provenance.
Licensed builds
A manifest may include a license object containing product_id, release_id, product_version, an HTTPS api_url, and pinned Ed25519 public keys. Do not include a license key, access token, HMAC secret, or private signing key. The activation key is read from stdin, not a process argument.
The licensed runtime stores the installation ID, token, and signed lease in an owner-only directory with 0700/0600 permissions. A lease permits up to seven days offline; renewal runs about once a day without blocking the event loop. Keep the state directory and owner stable across binary upgrades, and synchronize system time.
A production activation service is not available for customer releases. A local fixture covers the client path, but staging and production activation, HTTPS ingress, and KMS signing have not been verified. Do not distribute licensed binaries until those checks pass.
What the format does not provide
- PHAR contains extractable PHP code.
micro.sfxcombines the runtime but does not encrypt source files. - A signature detects changes to a signed bundle; it cannot prevent patching the executable.
- A lease can limit the launch right in time. It does not replace server-side authorization or stop an owner with sufficient system access.
- Excluding
.env*,auth.json, andcomposer-auth.jsonis not a general secret scanner. Review the project tree before building.
Review compatibility and release gates before preparing a release.

