From 7a64ec773aafb9a10245cbe7a5b3c4928f284fe0 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 3 Nov 2023 16:33:36 -0600 Subject: [PATCH] Initial steps to generate an aegis. --- README.md | 4 ++++ gongor/aegis.py | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d2305f6..34f9ea0 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,7 @@ Tool for producing identities Anagram of "Gorgon". + +## aegis-generate + +This generates an initial ID, known as an 'aegis'. It uses [step-ca](https://smallstep.com/docs/step-cli/the-step-command/) defaults which puts the data files in `$HOME/.step`. diff --git a/gongor/aegis.py b/gongor/aegis.py index 0ffae14..3703f85 100644 --- a/gongor/aegis.py +++ b/gongor/aegis.py @@ -1,3 +1,13 @@ +import subprocess + def generate(): - print("Generating...") - print("Done.") + print("Please name this aegis. You can call it anything. Frequently people use their legal name.") + name = input("Name? ") + print("Generating aegis.") + subprocess.run([ + "step", "ca", "init", + "--pki", + "--deployment-type=standalone", + "--name", name, + ], + check=True,)