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: |
#!/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.