license.flexfs
license.flexfs manages the cryptographic signing identity and license grants used by the flexFS licensing system. Grants are ECDSA-signed JSON documents containing an expiration date.
Subcommands
Section titled “Subcommands”| Subcommand | Description |
|---|---|
create identity | Generate a new ECDSA P-256 signing keypair |
create grant | Create a signed license grant |
verify | Verify a grant’s signature and check expiration |
version | Print the build version |
license | Print license information |
Persistent Flags
Section titled “Persistent Flags”| Flag | Type | Default | Description |
|---|---|---|---|
--keyFolder | string | ~/.flexfs/license | Signing key folder path |
create identity
Section titled “create identity”license.flexfs create identityGenerates a new ECDSA P-256 keypair and saves private.pem and public.pem to the key folder.
create grant
Section titled “create grant”license.flexfs create grant [--expires <RFC3339>] [-o <file>]Creates a signed grant. The grant expires at the specified time (default: 1 month from now). Expiration must be between 1 day and 2 years from now.
| Flag | Type | Default | Description |
|---|---|---|---|
--expires | string | 1 month from now | Expiration time in RFC3339 format |
--outputFile, -o | string | Output file path (stdout if omitted) |
verify
Section titled “verify”license.flexfs verify [-i <file>]Verifies the signature on a grant and reports whether it has expired.
| Flag | Type | Default | Description |
|---|---|---|---|
--inputFile, -i | string | Input file path (stdin if omitted) |