Skip to content

Instantly share code, notes, and snippets.

@peter279k
Forked from woods/gen-key-script
Created December 6, 2023 07:53
Show Gist options
  • Save peter279k/91db7868a7982eb89173b2cf33e2d7c3 to your computer and use it in GitHub Desktop.
Save peter279k/91db7868a7982eb89173b2cf33e2d7c3 to your computer and use it in GitHub Desktop.
Creating gpg keys non-interactively
Key-Type: 1
Key-Length: 2048
Subkey-Type: 1
Subkey-Length: 2048
Name-Real: Root Superuser
Name-Email: root@handbook.westarete.com
Expire-Date: 0
# Generate the key
gpg --batch --gen-key gen-key-script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment