-
Notifications
You must be signed in to change notification settings - Fork 39
/
gpg-send-key-tor
executable file
·40 lines (33 loc) · 1.44 KB
/
gpg-send-key-tor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash
#-----------------------------------------------------------------------------
# gpg-send-keys-tor
# -----------------
# Upload GPG keys over Tor. The default keyserver is
# hkp://cryptonomicon.mit.edu.
#
# :authors: Isis Agora Lovecruft, 0xa3adb67a2cdb8b35
# :license: GPLv3+
# :version: 0.0.2
#-----------------------------------------------------------------------------
TOR_SOCKSPORT=59050
keyservopts="verbose verbose "
keyservopts=$keyservopts"no-honor-keyserver-url "
keyservopts=$keyservopts"no-honor-pka-record "
keyservopts=$keyservopts"no-include-attributes "
keyservopts=$keyservopts"include-subkeys "
keyservopts=$keyservopts"http-proxy=socks4a://127.0.0.1:"$TOR_SOCKSPORT
#keyserver='hkp://18.9.60.141' ## cryptonomicon.mit.edu
#keyserver='hkp://209.234.253.170' ## keys.mayfirst.org
#keyserver='hkps://2eghzlv2wwcq7u7y.onion' ## keys.indymedia.org (hkps)
#kerserver='https://qtt2yl5jocgrk7nu.onion'
## If using one of the last two keyservers, you should download and verify the
## SSL certificate, and then specify it here (you'll also need to have the
## Debian `gnupg-curl` package installed):
#keyservopts=$keyservopts"ca-cert-file=~/.keys.indymedia.org.pem "
if test $# -lt 1 ; then
printf "Usage: %s <keyid>\n" "${0%%\/}"
else
## This keyserver is hkp://cryptonomicon.mit.edu
gpg --keyserver hkp://18.9.60.141 \
--keyserver-options "$keyservopts" --send-keys $@
fi