Skip to content

Instantly share code, notes, and snippets.

@alexdantas
Created April 13, 2013 23:21
Show Gist options
  • Save alexdantas/5380579 to your computer and use it in GitHub Desktop.
Save alexdantas/5380579 to your computer and use it in GitHub Desktop.
Signs several GPG keys, outputting each result on a different file.
#!/bin/bash
# This file signs several GPG keys, outputting
# each result on a different file.
MY_KEY=12345678
KEYS="90123456 78901234 56789012 34567890"
for key in $KEYS
do
gpg --sign-key $key
gpg --armor --output "$key-signed-by-$MY_KEY.asc" --export $key
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment