Skip to content

Instantly share code, notes, and snippets.

@koss822
Created May 5, 2024 22:28
Show Gist options
  • Save koss822/ae835128eae4a74a963a63858c30441b to your computer and use it in GitHub Desktop.
Save koss822/ae835128eae4a74a963a63858c30441b to your computer and use it in GitHub Desktop.
# Generate an AGE keypair
age-keygen -o keys.txt
# keys.txt contains both your public and private key.
# Separate them for use with SOPS:
grep 'public key' keys.txt > age.pub
grep -v 'public key' keys.txt > age.key
# Then, storing the age.key securely, for instance in KeePass, ensures it's safely kept away from prying eyes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment