go-http-peering/cmd/keygen
wpetit b28a87cc5d
Cadoles/go-http-peering/pipeline/head There was a failure building this commit Details
fix(keygen): correctly load token for validation
2024-01-05 11:12:27 +01:00
..
README.md Redesign authentication protocol 2019-03-29 14:59:07 +01:00
create_key.go Return wrapped errors 2022-09-12 17:46:59 +02:00
create_token.go Return wrapped errors 2022-09-12 17:46:59 +02:00
get_public_key.go Return wrapped errors 2022-09-12 17:46:59 +02:00
main.go feat(keygen): add -verify-token command 2024-01-04 16:21:40 +01:00
util.go fix(keygen): correctly load token for validation 2024-01-05 11:12:27 +01:00
verify_token.go fix(keygen): correctly load token for validation 2024-01-05 11:12:27 +01:00

README.md

keygen

Utilitaire de génération de jetons d'authentifications.

Usage

Créer une nouvelle clé privée

bin/keygen -create-key

Récupérer la clé publique associée à une clé privée précedemment créée

bin/keygen -get-public-key -key chemin/vers/clé/privée

Générer un jeton d'authentification à partir d'une clé privée

bin/keygen -create-token -key chemin/vers/clé/privée

Afficher l'aide

bin/keygen -help

Mode sans interaction

Les commandes nécessitant l'entrée d'une phrase de passe peuvent utiliser la variable d'environnement KEY_PASSPHRASE pour fonctionner sans interaction.