Comment utiliser la signature JWT ES384 avec Gitea

Dans app.ini, définissez par exemple

app.ini
[oauth2]
JWT_SIGNING_ALGORITHM = ES384
JWT_SIGNING_PRIVATE_KEY_FILE = /var/lib/gitea/jwt/private.pem

Générez la clé en utilisant cette commande (vous pourriez avoir besoin d’ajuster les chemins)

generate_es384_key.sh
openssl genpkey -algorithm EC -pkcs8 -pkeyopt ec_paramgen_curve:P-384 -out gitea_data/jwt/private.pem

Check out similar posts by category: Gitea, Cryptography