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,)