Skip to content

Key Generator

Generates cryptographic keys for JWT signing and encryption.

Building

bash
cmake .. -DENABLE_BUILD_KEYS_GENERATOR=ON
make keys_generator

Usage

bash
./keys_generator

This outputs a signature key and an encryption key in base64 format with the base64: prefix. Use them directly in your configuration:

json
{
  "jwt": {
    "keys": {
      "signature": "base64:...",
      "encryption": "base64:..."
    }
  }
}

The output already includes the base64: prefix — copy the entire string, do not add the prefix yourself.