Initial steps to generate an aegis.

This commit is contained in:
Eli Ribble 2023-11-03 16:33:36 -06:00
parent deb5bd01bb
commit 7a64ec773a
2 changed files with 16 additions and 2 deletions

View File

@ -3,3 +3,7 @@
Tool for producing identities Tool for producing identities
Anagram of "Gorgon". 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`.

View File

@ -1,3 +1,13 @@
import subprocess
def generate(): def generate():
print("Generating...") print("Please name this aegis. You can call it anything. Frequently people use their legal name.")
print("Done.") name = input("Name? ")
print("Generating aegis.")
subprocess.run([
"step", "ca", "init",
"--pki",
"--deployment-type=standalone",
"--name", name,
],
check=True,)