aboutsummaryrefslogtreecommitdiffstats
path: root/custom/conf/app.example.ini
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-07-06 21:49:27 +0100
committerGitHub <noreply@github.com>2022-07-06 16:49:27 -0400
commit354bfbe77948b9eaca372ab314734dccaf6f8d49 (patch)
treeb860f9e667977f89901d14bd63960b6c7a307a4c /custom/conf/app.example.ini
parent1e43a885780c0f04cca3e891f43902d573f1d993 (diff)
downloadgitea-354bfbe77948b9eaca372ab314734dccaf6f8d49.tar.gz
gitea-354bfbe77948b9eaca372ab314734dccaf6f8d49.zip
Allow RSA 2047 bit keys (#20272)
Unfortunately it appears that 2048 bit RSA keys can occasionally be created in such a way that they appear to have 2047 bit length. This PR simply changes our defaults to allow these. Fix #20249 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'custom/conf/app.example.ini')
-rw-r--r--custom/conf/app.example.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 01f5cb6a47..927dc71166 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -1231,7 +1231,7 @@ PATH =
;; Define allowed algorithms and their minimum key length (use -1 to disable a type)
;ED25519 = 256
;ECDSA = 256
-;RSA = 2048
+;RSA = 2047 ; we allow 2047 here because an otherwise valid 2048 bit RSA key can be reported as having 2047 bit length
;DSA = -1 ; set to 1024 to switch on
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;