Skip to content

Instantly share code, notes, and snippets.

View marvastsi's full-sized avatar

Marcelo Ferreira Vasconcelos marvastsi

View GitHub Profile

Working with GNUPG

How to create a gpg key without prompt.

  • Example on how to create a key in a specific directory, with passphrase and no prompt:
$ export GNUPGHOME=/home/highlander/cypher
$ cat >genkey-batch <<EOF
     %echo Generating a basic OpenPGP key
 Key-Type: DSA