From 19a634763d4546b0ecd55de5e65deaf6be66f5ef Mon Sep 17 00:00:00 2001 From: Sean Whalen <44679+seanthegeek@users.noreply.github.com> Date: Mon, 24 Feb 2020 13:17:07 -0500 Subject: [PATCH 1/2] Remove dhparams.pem and chain.pem check These files are not needed with the new nginx config --- server/files/entrypoint_nginx.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/files/entrypoint_nginx.sh b/server/files/entrypoint_nginx.sh index c626f98..91a5e92 100755 --- a/server/files/entrypoint_nginx.sh +++ b/server/files/entrypoint_nginx.sh @@ -66,12 +66,9 @@ init_misp_files(){ } init_ssl() { - if [[ (! -f /etc/ssl/dhparams.pem) || - (! -f /etc/ssl/cert.pem) || - (! -f /etc/ssl/key.pem) || - (! -f /etc/ssl/chain.pem) ]]; then + if [[ (! -f /etc/ssl/cert.pem) || + (! -f /etc/ssl/key.pem) ]]; then cd /etc/ssl - openssl dhparam -out dhparams.pem 2048 openssl req -x509 -subj '/CN=localhost' -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 cp cert.pem chain.pem fi From 8d928399e109105d366d17a3b76516e49ca7cf60 Mon Sep 17 00:00:00 2001 From: Sean Whalen <44679+seanthegeek@users.noreply.github.com> Date: Mon, 24 Feb 2020 19:25:58 -0500 Subject: [PATCH 2/2] Update entrypoint_nginx.sh --- server/files/entrypoint_nginx.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/server/files/entrypoint_nginx.sh b/server/files/entrypoint_nginx.sh index 91a5e92..5fff08d 100755 --- a/server/files/entrypoint_nginx.sh +++ b/server/files/entrypoint_nginx.sh @@ -70,7 +70,6 @@ init_ssl() { (! -f /etc/ssl/key.pem) ]]; then cd /etc/ssl openssl req -x509 -subj '/CN=localhost' -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 - cp cert.pem chain.pem fi }