fix TLS support, attempt 1
continuous-integration/drone/push Build is passing Details

* add libssl1.0-dev package for tls support to be built in
* fix bug in cert generation script
* make cert generation script noninteractive
This commit is contained in:
Jeffrey Paul 2020-03-22 06:31:38 -07:00
parent 67833a1b2d
commit 14b302755a
2 changed files with 9 additions and 2 deletions

View File

@ -31,6 +31,7 @@ RUN \
libreadline-dev \
locales \
mercurial \
libssl1.0-dev \
python \
rsync \
ruby \

View File

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