diff --git a/includes/keygen.php b/includes/keygen.php index 09ec7f9..2713a81 100644 --- a/includes/keygen.php +++ b/includes/keygen.php @@ -75,7 +75,7 @@ if (array_key_exists('HTTP_USER_AGENT',$_SERVER) && strstr($_SERVER['HTTP_USER_A

+ 2048)?>

diff --git a/includes/lib/check_weak_key.php b/includes/lib/check_weak_key.php index ca13ba2..217b885 100644 --- a/includes/lib/check_weak_key.php +++ b/includes/lib/check_weak_key.php @@ -137,7 +137,7 @@ function checkWeakKeyText($text) $keysize = intval($keysize[1]); } - if ($keysize < 1024) + if ($keysize < 2048) { return sprintf(_("The keys that you use are very small ". "and therefore insecure. Please generate stronger ". @@ -145,11 +145,6 @@ function checkWeakKeyText($text) "found in %sthe wiki%s"), "", ""); - } elseif ($keysize < 2048) { - // not critical but log so we have some statistics about - // affected users - trigger_error("checkWeakKeyText(): Certificate for small ". - "key (< 2048 bit) requested", E_USER_NOTICE); }