key2jwt requires two flags (and will print result in stdout):
- audience: where the assertion is going to be used (e.g. https://issuer.zitadel.ch)
- key: the path to the key.json
./key2jwt -audience=https://issuer.zitadel.ch -key=key.json
Optionally you can pass an output
flag. This will save the jwt in the provided file path:
./key2jwt -audience=https://issuer.zitadel.ch -key=key.json -output=jwt.txt