Skip to content

Commit

Permalink
WIP: try to fix the generate
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Oct 24, 2024
1 parent 96cd3c7 commit 0f7aebd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/fixtures/generate.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
#!/usr/bin/env sh
set -ex

gpg --batch --gen-key <<-EOF
# shellcheck disable=SC2155
export GPG_TTY=$(tty)
gpg --batch --gen-key --no-tty <<-EOF
%echo Generating a standard key
Key-Type: DSA
Key-Length: 1024
Subkey-Type: ELG-E
Subkey-Length: 1024
Name-Real: Meshuggah Rocks
Name-Email: [email protected]
Passphrase: with stupid passphrase
Expire-Date: 0
# Do a commit here, so that we can later print "done" :-)
%commit
%echo done
EOF

# doesn't work; still asks for passphrase interactively
# gpg --output private.pgp --armor --export-secret-key [email protected]

# doesn't work; still asks for passphrase interactively
# gpg --passphrase 'with stupid passphrase' --output private.pgp --armor --export-secret-key [email protected]

# doesn't work; still asks for passphrase interactively
# gpg --batch --passphrase 'with stupid passphrase' --no-tty --output private.pgp --armor --export-secret-key [email protected]

0 comments on commit 0f7aebd

Please sign in to comment.