forked from p34709852/monkey
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:
parent
90f9f69e30
commit
305d15cc6a
|
@ -56,6 +56,6 @@ service monkey-mongo start
|
||||||
|
|
||||||
echo "Monkey Island installation ended."
|
echo "Monkey Island installation ended."
|
||||||
echo "The server should be accessible soon via https://localhost:5000/"
|
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
|
exit 0
|
|
@ -2,8 +2,9 @@
|
||||||
|
|
||||||
server_root=${1:-"./cc"}
|
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 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 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
|
openssl x509 -req -days 366 -in "$server_root"/server.csr -signkey "$server_root"/server.key -out $server_root/server.crt
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue