From a3add44c29955cbbce3099f78d547ff6d707de4b Mon Sep 17 00:00:00 2001 From: m Date: Mon, 13 Apr 2015 17:11:53 +0200 Subject: [PATCH] Allow keys greater than 4096 bit --- foodoor-update-keydb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foodoor-update-keydb b/foodoor-update-keydb index fa9670f..a59f3a5 100755 --- a/foodoor-update-keydb +++ b/foodoor-update-keydb @@ -24,8 +24,8 @@ do do valid_key=$(ssh-keygen -l -f ${keyfile}) if [ "$?" -eq "0" ]; then - if [ $(echo "${valid_key}" | cut -d" " -f1) -ne "4096" ]; then - echo "Key size of key ${keyfile} not equal to 4096. Not adding it to key database." >&2 + if [ $(echo "${valid_key}" | cut -d" " -f1) -lt "4096" ]; then + echo "Size of key ${keyfile} is less than 4096. Not adding it to key database." >&2 continue fi fi