summaryrefslogtreecommitdiffstats
path: root/docker
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 /docker
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 'docker')
-rwxr-xr-xdocker/root/etc/s6/openssh/setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/root/etc/s6/openssh/setup b/docker/root/etc/s6/openssh/setup
index f43544d655..dbb3bafd35 100755
--- a/docker/root/etc/s6/openssh/setup
+++ b/docker/root/etc/s6/openssh/setup
@@ -11,7 +11,7 @@ fi
if [ ! -f /data/ssh/ssh_host_rsa_key ]; then
echo "Generating /data/ssh/ssh_host_rsa_key..."
- ssh-keygen -t rsa -b 2048 -f /data/ssh/ssh_host_rsa_key -N "" > /dev/null
+ ssh-keygen -t rsa -b 3072 -f /data/ssh/ssh_host_rsa_key -N "" > /dev/null
fi
if [ ! -f /data/ssh/ssh_host_ecdsa_key ]; then