From 297c58b1691287baaab1b04ad4c0221083734206 Mon Sep 17 00:00:00 2001 From: Frank Breedijk Date: Tue, 29 Aug 2017 17:08:01 +0200 Subject: [PATCH] Fixes #536 - Seccubus did not install on debian because openssl passphrase was too short (also effected docker container) --- README.md | 2 +- deb/debian.postinst | 4 ++-- docker-files/entrypoint.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bc018c24a..07e52e05d 100644 --- a/README.md +++ b/README.md @@ -156,4 +156,4 @@ Enhancements Bug Fixes --------- -* #542 - Docker broken \ No newline at end of file +* #536 - Seccubus did not install on debian because openssl passphrase was too short (also effected docker container) \ No newline at end of file diff --git a/deb/debian.postinst b/deb/debian.postinst index a160fa7df..3e9170db8 100644 --- a/deb/debian.postinst +++ b/deb/debian.postinst @@ -172,8 +172,8 @@ EOF # Certificates if [ ! -e "/etc/seccubus/seccubus.key" ] && [ ! -e "/etc/seccubus/seccubus.crt" ] ; then - openssl genrsa -des3 -passout pass:x -out /etc/seccubus/seccubus.pass.key 4096 - openssl rsa -passin pass:x -in /etc/seccubus/seccubus.pass.key -out /etc/seccubus/seccubus.key + openssl genrsa -des3 -passout pass:x12345 -out /etc/seccubus/seccubus.pass.key 4096 + openssl rsa -passin pass:x12345 -in /etc/seccubus/seccubus.pass.key -out /etc/seccubus/seccubus.key rm -f /etc/seccubus/seccubus.pass.key openssl req -new -key /etc/seccubus/seccubus.key -out /etc/seccubus/seccubus.csr \ -subj "/CN=Seccubus" diff --git a/docker-files/entrypoint.sh b/docker-files/entrypoint.sh index bc8ef2a79..eb60b87f6 100755 --- a/docker-files/entrypoint.sh +++ b/docker-files/entrypoint.sh @@ -66,8 +66,8 @@ if [[ "$TLS" == "yes" && "$STACK" != "cron" && "$STACK" != "perl" ]]; then echo "$TLSCERT" > "/opt/seccubus/data/seccubus.pem" echo "$TLSKEY" > "/opt/seccubus/data/seccubus.key" else - openssl genrsa -des3 -passout pass:x -out /opt/seccubus/data/seccubus.pass.key 4096 - openssl rsa -passin pass:x -in /opt/seccubus/data/seccubus.pass.key -out /opt/seccubus/data/seccubus.key + openssl genrsa -des3 -passout pass:x12345 -out /opt/seccubus/data/seccubus.pass.key 4096 + openssl rsa -passin pass:x12345 -in /opt/seccubus/data/seccubus.pass.key -out /opt/seccubus/data/seccubus.key rm /opt/seccubus/data/seccubus.pass.key openssl req -new -key /opt/seccubus/data/seccubus.key -out /opt/seccubus/data/seccubus.csr \ -subj "/CN=Seccubus"