Browse Source

remove uploading to key servers automatically, to discourage key server spam

master
Micah Lee 8 years ago
parent
commit
ecefcac74e
2 changed files with 0 additions and 34 deletions
  1. 0
    17
      ascii_sign
  2. 0
    17
      fake_sign

+ 0
- 17
ascii_sign View File

@@ -25,18 +25,6 @@ class TrollWoT_ASCIISign:
# show fingerprints with gpg
subprocess.Popen(['gpg', '--homedir', self.gpg.gnupghome, '--list-sigs', self.target_keyid]).wait()

# prompt for uploading to key server
upload_keys = ''
while upload_keys != 'YES' and upload_keys != 'no':
upload_keys = raw_input('Does this look good? Type "YES" to upload, "no" to quit: ')

if upload_keys == 'YES':
print 'Uploading fingerprints'
for fingerprint in self.fingerprints:
self.send_key(fingerprint)

print '\n\nView the ASCII signed key here: {0}'.format(self.keyserver_url)

def gen_keys_and_sign(self, filename):
fingerprints_to_sign = []

@@ -74,11 +62,6 @@ class TrollWoT_ASCIISign:
print 'Receiving key {0} from pool.sks-keyservers.net'.format(keyid)
subprocess.Popen(['gpg', '--homedir', self.gpg.gnupghome, '--keyserver', 'pool.sks-keyservers.net', '--recv-keys', keyid]).wait()

def send_key(self, fingerprint):
keyid = fingerprint[-8:]
print 'Sending key {0} to pool.sks-keyservers.net'.format(keyid)
subprocess.Popen(['gpg', '--homedir', self.gpg.gnupghome, '--keyserver', 'pool.sks-keyservers.net', '--send-key', keyid]).wait()

if __name__ == '__main__':
# arguments
if len(sys.argv) != 3:

+ 0
- 17
fake_sign View File

@@ -25,18 +25,6 @@ class TrollWoT_FakeSign:
# show fingerprints with gpg
subprocess.Popen(['gpg', '--homedir', self.gpg.gnupghome, '--list-sigs', keyid]).wait()

# prompt for uploading to key server
upload_keys = ''
while upload_keys != 'YES' and upload_keys != 'no':
upload_keys = raw_input('Does this look good? Type "YES" to upload, "no" to quit: ')

if upload_keys == 'YES':
print 'Uploading fingerprints'
for fingerprint in fingerprints:
self.send_key(fingerprint)

print '\n\nView the signed key here: {0}'.format(self.keyserver_url)

def gen_key(self, name, email):
print 'Generating key with userid: {0} <{1}>'.format(name, email)
input = self.gpg.gen_key_input(name_real = name, name_email = email, key_length = 4096)
@@ -59,11 +47,6 @@ class TrollWoT_FakeSign:
print 'Receiving key {0} from pool.sks-keyservers.net'.format(keyid)
subprocess.Popen(['gpg', '--homedir', self.gpg.gnupghome, '--keyserver', 'pool.sks-keyservers.net', '--recv-keys', keyid]).wait()

def send_key(self, fingerprint):
keyid = fingerprint[-8:]
print 'Sending key {0} to pool.sks-keyservers.net'.format(keyid)
subprocess.Popen(['gpg', '--homedir', self.gpg.gnupghome, '--keyserver', 'pool.sks-keyservers.net', '--send-key', keyid]).wait()

if __name__ == '__main__':
# arguments
if len(sys.argv) != 4:

Loading…
Cancel
Save