Paste number 304383: gpg with .wot

Paste number 304383: gpg with .wot
Pasted by: phf
When:9 years, 2 months ago
Share:Tweet this! | http://paste.lisp.org/+6IV3
Channel:None
Paste contents:
Raw Source | XML | Display As
#!/bin/sh

wotdir=wot
tmpdir=`mktemp -d /tmp/fooXXX`

import_remote() {
    gpg --homedir "$tmpdir" --keyserver pool.sks-keyservers.net --recv-keys "$1"
}

cleanup() {
    rm -rf "$tmpdir"
}
trap cleanup EXIT

# should we even pull a key from outside wot?
import_remote 0xAB07D806D2CE741FB886EE50B025BA8B59C36319

for pubkey in "$wotdir"/*.asc; do
    gpg --homedir "$tmpdir" --import "$pubkey"
done;

exec gpg --homedir "$tmpdir" $@

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.