]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
Download key using web key directory from torproject.org instead of keyservers
authorMicah Lee <micah@micahflee.com>
Tue, 6 Oct 2020 22:58:22 +0000 (15:58 -0700)
committerMicah Lee <micah@micahflee.com>
Tue, 6 Oct 2020 22:58:22 +0000 (15:58 -0700)
torbrowser_launcher/common.py

index 25bb984504904f73e2b798fa65fe39034ec50609..adb9426aad1b6019dfaf65e9881443195f9f1594 100644 (file)
@@ -193,10 +193,11 @@ class Common(object):
         else:
             print('Refreshing local keyring...')
 
+        # Fetch key from wkd, as per https://support.torproject.org/tbb/how-to-verify-signature/
         p = subprocess.Popen(['/usr/bin/gpg2', '--status-fd', '2',
                               '--homedir', self.paths['gnupg_homedir'],
-                              '--keyserver', 'hkps://keys.openpgp.org',
-                              '--refresh-keys'], stderr=subprocess.PIPE)
+                              '--auto-key-locate', 'nodefault,wkd',
+                              '--locate-keys', 'torbrowser@torproject.org'], stderr=subprocess.PIPE)
         p.wait()
 
         for output in p.stderr.readlines():