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
This commit is contained in:
Shay Nehmad 2020-04-11 01:11:01 +03:00
parent 90f9f69e30
commit 305d15cc6a
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -2,8 +2,9 @@
server_root=${1:-"./cc"}
# We override the RANDFILE determined by default openssl.cnf
dd bs=1024 count=2 </dev/urandom >~/.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