aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authormainboarder <git@mainboarder.de>2023-08-28 02:53:16 +0200
committerGitHub <noreply@github.com>2023-08-28 00:53:16 +0000
commitc533991519816313dfaa0ddcec183756a97b9348 (patch)
tree66ce0853585a3403c597ad40f40f4e7d28b6a3fa /cmd
parent2401e6e1210cb41481e7443ab256a0ee9bda44f4 (diff)
downloadgitea-c533991519816313dfaa0ddcec183756a97b9348.tar.gz
gitea-c533991519816313dfaa0ddcec183756a97b9348.zip
Expanded minimum RSA Keylength to 3072 (#26604)
German Federal Office for Information Security requests in its technical guideline BSI TR-02102-1 RSA Keylength not shorter than 3000bits starting 2024, in the year 2023 3000bits as a recommendation. Gitea should request longer RSA Keys by default in favor of security and drop old clients which do not support longer keys. https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Publikationen/TechnischeRichtlinien/TR02102/BSI-TR-02102.pdf?__blob=publicationFile&v=9 - Page 19, Table 1.2 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cert.go b/cmd/cert.go
index 9ae5ed06ce..38241d71a3 100644
--- a/cmd/cert.go
+++ b/cmd/cert.go
@@ -43,7 +43,7 @@ Outputs to 'cert.pem' and 'key.pem' and will overwrite existing files.`,
},
&cli.IntFlag{
Name: "rsa-bits",
- Value: 2048,
+ Value: 3072,
Usage: "Size of RSA key to generate. Ignored if --ecdsa-curve is set",
},
&cli.StringFlag{