Skip to content

Commit

Permalink
Fixes #536 - Seccubus did not install on debian because openssl passp…
Browse files Browse the repository at this point in the history
…hrase was too short (also effected docker container)
  • Loading branch information
MrSeccubus committed Aug 30, 2017
1 parent 22bbc27 commit 297c58b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -156,4 +156,4 @@ Enhancements

Bug Fixes
---------
* #542 - Docker broken
* #536 - Seccubus did not install on debian because openssl passphrase was too short (also effected docker container)
4 changes: 2 additions & 2 deletions deb/debian.postinst
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions docker-files/entrypoint.sh
Expand Up @@ -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"
Expand Down

0 comments on commit 297c58b

Please sign in to comment.