Initial steps to generate an aegis.
This commit is contained in:
parent
deb5bd01bb
commit
7a64ec773a
|
@ -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`.
|
||||
|
|
|
@ -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,)
|
||||
|
|
Loading…
Reference in New Issue