Skip to content

Instantly share code, notes, and snippets.

@dnet
Created August 9, 2013 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnet/6193527 to your computer and use it in GitHub Desktop.
Save dnet/6193527 to your computer and use it in GitHub Desktop.
PGP keysigning e-mail address verification generator
#!/bin/sh
# reads e-mail addresses (one per row) from `mails.txt` and writes
# e-mail bodies into files inside the `mails` directory, putting the
# e-mail address in the filename, with a `.txt` extension -- these
# can be changed below
# author: András Veres-Szentkirályi <vsza@vsza.hu>
# source code is licensed under MIT, textual content under CC-BY-SA
INPUT=mails.txt
OUTDIR=mails
mkdir -p $OUTDIR
while read i; do
cat >$OUTDIR/$i.txt <<-MAIL
Hi,
I'm dnet (András Veres-Szentkirályi) and we both participated in a
keysigning party in the last few months. To sign your UID, I need
to be sure that you control the e-mail address in the UID and the
secret key you signed it with. To prove this, please reply to this
e-mail in a way that it contains this original text, along with
the request identifier string below. Please encrypt the reply with
my public key (278F 163F ABB0 EFE4 1289 BAA0 7559 181E 9417 6CCC).
Signing it with your key is optional, since you already proved you
possess the private key by decrypting this e-mail.
Request ID: $(uuidgen)
Upon successful verification, I will sign your UID(s), and if you
allowed/requested it, I will upload the signature to the keyserver.
If you have any questions or would like me to perform a similar,
verification, feel free to include these in your reply.
--
Regards,
dnet (András Veres-Szentkirályi)
MAIL
done < $INPUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment