From 14b302755a210bb830acb7fe1b4bd3c19b61ffc2 Mon Sep 17 00:00:00 2001 From: sneak Date: Sun, 22 Mar 2020 06:31:38 -0700 Subject: [PATCH] fix TLS support, attempt 1 * add libssl1.0-dev package for tls support to be built in * fix bug in cert generation script * make cert generation script noninteractive --- Dockerfile | 1 + src/linux/generate_certs.sh | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4251ba7..ff3ae7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,7 @@ RUN \ libreadline-dev \ locales \ mercurial \ + libssl1.0-dev \ python \ rsync \ ruby \ diff --git a/src/linux/generate_certs.sh b/src/linux/generate_certs.sh index dc54d4b..28d876a 100644 --- a/src/linux/generate_certs.sh +++ b/src/linux/generate_certs.sh @@ -8,7 +8,13 @@ if [ "$(which openssl)" ]; openssl genrsa -out privkey.pem 2048 clear openssl dhparam -outform PEM -out dhparam.pem 1024 - openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095 + openssl req \ + -new -x509 \ + -key privkey.pem \ + -out cacert.pem \ + -days 1095 \ + -batch \ + -subj '/CN=adchpp.example.com/O=ADCH++/C=AU' clear if [ -f certs/trusted ]; @@ -18,7 +24,7 @@ if [ "$(which openssl)" ]; mkdir -p certs/trusted fi - mv *.pem certs + #mv *.pem certs echo "All done!" else