From aa492066d826d1ab0d8661bf167b3c8e30d2d178 Mon Sep 17 00:00:00 2001 From: iglocska Date: Fri, 14 Nov 2014 13:12:40 +0100 Subject: [PATCH] Diagnostics check fails on PGP check if the server's key is a sign only key --- VERSION.json | 2 +- app/Controller/ServersController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION.json b/VERSION.json index 739b71a4a..0c9d4a63f 100644 --- a/VERSION.json +++ b/VERSION.json @@ -1 +1 @@ -{"major":2, "minor":3, "hotfix":26} \ No newline at end of file +{"major":2, "minor":3, "hotfix":27} \ No newline at end of file diff --git a/app/Controller/ServersController.php b/app/Controller/ServersController.php index 8827d8efd..91089bf94 100755 --- a/app/Controller/ServersController.php +++ b/app/Controller/ServersController.php @@ -377,7 +377,7 @@ class ServersController extends AppController { try { require_once 'Crypt/GPG.php'; $gpg = new Crypt_GPG(array('homedir' => Configure::read('GnuPG.homedir'))); - $key = $gpg->addEncryptKey(Configure::read('GnuPG.email')); + $key = $gpg->addSignKey(Configure::read('GnuPG.email'), Configure::read('GnuPG.password')); } catch (Exception $e) { $gpgStatus = 2; $continue = false; @@ -385,7 +385,7 @@ class ServersController extends AppController { if ($continue) { try { $gpgStatus = 0; - $enc = $gpg->encrypt('test', true); + $signed = $gpg->sign('test', Crypt_GPG::SIGN_MODE_CLEAR); } catch (Exception $e){ $gpgStatus = 3; }