Skip to content
Snippets Groups Projects
Commit b994a9c6 authored by Bob Mottram's avatar Bob Mottram
Browse files

Bumping default dh key lengths

parent 3ddeb7fa
No related branches found
No related tags found
No related merge requests found
...@@ -1650,7 +1650,7 @@ openssl req \ ...@@ -1650,7 +1650,7 @@ openssl req \
-keyout /etc/ssl/private/$HOSTNAME.key \ -keyout /etc/ssl/private/$HOSTNAME.key \
-out /etc/ssl/certs/$HOSTNAME.crt -out /etc/ssl/certs/$HOSTNAME.crt
openssl dhparam -check -text -5 1024 -out /etc/ssl/certs/$HOSTNAME.dhparam openssl dhparam -check -text -5 2048 -out /etc/ssl/certs/$HOSTNAME.dhparam
chmod 400 /etc/ssl/private/$HOSTNAME.key chmod 400 /etc/ssl/private/$HOSTNAME.key
chmod 640 /etc/ssl/certs/$HOSTNAME.crt chmod 640 /etc/ssl/certs/$HOSTNAME.crt
...@@ -7362,7 +7362,7 @@ PATH='/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin' ...@@ -7362,7 +7362,7 @@ PATH='/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin'
initialrepair_start() { initialrepair_start() {
echo "Starting $SERVICE..." echo "Starting $SERVICE..."
su --command "screen -h 1024 -dmS ${SERVICE} ${INVOCATION}" root su --command "screen -h 2048 -dmS ${SERVICE} ${INVOCATION}" root
} }
......
...@@ -417,7 +417,7 @@ ZERONET_DEFAULT_FORUM_TAGLINE="A decentralized discussion group" ...@@ -417,7 +417,7 @@ ZERONET_DEFAULT_FORUM_TAGLINE="A decentralized discussion group"
IPFS_PORT=4001 IPFS_PORT=4001
   
# Default diffie-hellman key length in bits # Default diffie-hellman key length in bits
DH_KEYLENGTH=1024 DH_KEYLENGTH=2048
   
# repo for atheros AR9271 wifi driver # repo for atheros AR9271 wifi driver
ATHEROS_WIFI_REPO='https://github.com/qca/open-ath9k-htc-firmware.git' ATHEROS_WIFI_REPO='https://github.com/qca/open-ath9k-htc-firmware.git'
......
...@@ -36,7 +36,7 @@ ORGANISATION="Freedombone" ...@@ -36,7 +36,7 @@ ORGANISATION="Freedombone"
UNIT="Freedombone Unit" UNIT="Freedombone Unit"
EXTENSIONS="" EXTENSIONS=""
NODH= NODH=
DH_KEYLENGTH=1024 DH_KEYLENGTH=2048
function show_help { function show_help {
echo '' echo ''
......
...@@ -695,7 +695,9 @@ function interactive_configuration { ...@@ -695,7 +695,9 @@ function interactive_configuration {
if [[ $INSTALLING_ON_BBB == "yes" ]]; then if [[ $INSTALLING_ON_BBB == "yes" ]]; then
USB_DRIVE=/dev/sda1 USB_DRIVE=/dev/sda1
# here a short diffie-hellman key length is used, because otherwise creation of keys # here a short diffie-hellman key length is used, because otherwise creation of keys
# becomes impractically long on the beaglebone. # becomes impractically long on the beaglebone. It is known (as of 2015) that
# 1024bit DH may be breakable, so this is really a tradeoff between security and the
# available hardware
DH_KEYLENGTH=1024 DH_KEYLENGTH=1024
fi fi
save_configuration_file save_configuration_file
......
...@@ -53,7 +53,7 @@ CURRENT_DIR=$(pwd) ...@@ -53,7 +53,7 @@ CURRENT_DIR=$(pwd)
REGENERATE_SSH_HOST_KEYS="no" REGENERATE_SSH_HOST_KEYS="no"
REGENERATE_DH_KEYS="no" REGENERATE_DH_KEYS="no"
RESET_TRIPWIRE="no" RESET_TRIPWIRE="no"
DH_KEYLENGTH=1024 DH_KEYLENGTH=2048
function get_protocols_from_website { function get_protocols_from_website {
if [ ! -f $WEBSITES_DIRECTORY/$1 ]; then if [ ! -f $WEBSITES_DIRECTORY/$1 ]; then
...@@ -347,7 +347,7 @@ function regenerate_dh_keys { ...@@ -347,7 +347,7 @@ function regenerate_dh_keys {
dialog --backtitle "Freedombone Security Configuration" \ dialog --backtitle "Freedombone Security Configuration" \
--title "Diffie-Hellman key length" \ --title "Diffie-Hellman key length" \
--radiolist "The smaller length is better suited to low power embedded systems:" 12 40 3 \ --radiolist "The smaller length is better suited to low power embedded systems:" 12 40 3 \
1 "1024 bits" off \ 1 "1024 bits (WARNING: this may be insecure)" off \
2 "2048 bits" on \ 2 "2048 bits" on \
3 "3072 bits" off 2> $data 3 "3072 bits" off 2> $data
sel=$? sel=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment