From 305d15cc6a3d823ae5eb48a53b6590f8c8544df8 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Sat, 11 Apr 2020 01:11:01 +0300 Subject: [PATCH] Added random seed data to .rnd for openssl to work This is a known issue with openssl and once ubuntu 18 gets a new version we can delete this --- monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst | 2 +- monkey/monkey_island/linux/create_certificate.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst b/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst index 0a8a25deb..6d6a2e26f 100644 --- a/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst +++ b/monkey/monkey_island/deb-package/DEBIAN_MONGO/postinst @@ -56,6 +56,6 @@ service monkey-mongo start echo "Monkey Island installation ended." echo "The server should be accessible soon via https://localhost:5000/" -echo "To check server status, run 'sudo service monkey_island status'" +echo "To check the Island's status, run 'sudo service monkey-island status'" exit 0 \ No newline at end of file diff --git a/monkey/monkey_island/linux/create_certificate.sh b/monkey/monkey_island/linux/create_certificate.sh index 7e306a822..365024ead 100644 --- a/monkey/monkey_island/linux/create_certificate.sh +++ b/monkey/monkey_island/linux/create_certificate.sh @@ -2,8 +2,9 @@ server_root=${1:-"./cc"} +# We override the RANDFILE determined by default openssl.cnf +dd bs=1024 count=2 ~/.rnd openssl genrsa -out "$server_root"/server.key 2048 openssl req -new -key "$server_root"/server.key -out "$server_root"/server.csr -subj "/C=GB/ST=London/L=London/O=Global Security/OU=Monkey Department/CN=monkey.com" openssl x509 -req -days 366 -in "$server_root"/server.csr -signkey "$server_root"/server.key -out $server_root/server.crt -