This repository manages the JSON Web Key (JWK) Set served at jwks.arma.events. It is deployed automatically via GitHub Pages.
- Deno 2.6 or higher
This project includes tools to manage JWKs efficiently.
Use the gen task to create a new JWK key pair. The public key is automatically saved to the
repository (production/ or staging/), and the private key is printed to your terminal.
deno task gen <key-name> [comment]Options:
-p, --production: Save key for theproductionenvironment (Default:false)-s, --staging: Save key for thestagingenvironment (Default:true, unless--productionis set)-f, --force: Force overwrite an existing key
Example:
# Generate a staging key
deno task gen my-service-key "Key for the microservice"
# Generate a production key
deno task gen -p production-keyWarning
The private key is output to the console. Store it securely. Do not commit it to the repository.
The build task compiles individual key files into single JSON Web Key Sets (JWKS) for
distribution.
deno task buildThis command:
- reads keys from
production/andstaging/ - verifies they are valid JWKs
- generates
dist/production.jsonanddist/staging.json
production/- Public keys for the production environment.staging/- Public keys for the staging environment.tools/- Deno scripts for key generation and building.dist/- Generated output (served by GitHub Pages).
Changes to the main branch trigger a deployment to GitHub Pages, serving the contents of the
dist/ directory.