]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
pakfire: Drop old key import mechanism
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Mar 2018 14:36:05 +0000 (14:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Mar 2018 14:37:21 +0000 (14:37 +0000)
This was error-prone and allowed to potentially inject another
key.

Fixes: #11539
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/120/filelists/files
src/pakfire/lib/functions.pl
src/pakfire/pakfire

index 9dbc270fe8162f51d83b63fa48834357f621136e..c8877f5281f83e1143a926f1864570c71b5ed94b 100644 (file)
@@ -4,6 +4,7 @@ etc/sysctl.conf
 etc/fcron.daily/openvpn-crl-updater
 etc/rc.d/init.d/dhcp
 etc/rc.d/init.d/unbound
+opt/pakfire/lib/functions.pl
 opt/pakfire/pakfire.key
 srv/web/ipfire/cgi-bin/ovpnmain.cgi
 srv/web/ipfire/cgi-bin/proxy.cgi
index 0bf702e5b0f5618c15348f95910313dba9949d3c..c97d4254dc8aa17578e3533208db7015fb88bacc 100644 (file)
@@ -33,9 +33,6 @@ use Net::Ping;
 
 package Pakfire;
 
-# GPG Keys
-my $myid = "179740DC4D8C47DC63C099C74BDE364C64D96617";         # Our own gpg-key paks@ipfire.org
-
 # A small color-hash :D
 my %color;
        $color{'normal'}      = "\033[0m"; 
@@ -899,19 +896,6 @@ sub senduuid {
        }
 }
 
-sub checkcryptodb {
-       logger("CRYPTO INFO: Checking GnuPG Database");
-       system("gpg --fingerprint $myid >/dev/null");
-       return if ($? == 0);
-
-       message("CRYPTO WARN: The GnuPG isn't configured correctly. Trying now to fix this.");
-       message("CRYPTO WARN: It's normal to see this on first execution.");
-       message("CRYPTO WARN: If this message is being shown repeatedly, check if time and date are set correctly, and if IPFire can connect via port 11371 TCP.");
-
-       my $command = "gpg --keyserver pgp.ipfire.org --always-trust --status-fd 2";
-       system("$command --recv-key $myid >> $Conf::logdir/gnupg-database.log 2>&1");
-}
-
 sub callback {
    my ($data, $response, $protocol) = @_;
    $final_data .= $data;
index da68454dc6646600cb401be62398734727f7bf59..202c1e5a142f83200f89b2d3c6544f8a16d57d3e 100644 (file)
@@ -30,7 +30,6 @@
        my $force = "noforce";
        
        &Pakfire::logger("PAKFIRE INFO: IPFire Pakfire $Conf::version started!");
-       &Pakfire::checkcryptodb;
 
        ### Check if we are running as root
        #