fix TLS support, attempt 1
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
* 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:
parent
67833a1b2d
commit
14b302755a
@ -31,6 +31,7 @@ RUN \
|
|||||||
libreadline-dev \
|
libreadline-dev \
|
||||||
locales \
|
locales \
|
||||||
mercurial \
|
mercurial \
|
||||||
|
libssl1.0-dev \
|
||||||
python \
|
python \
|
||||||
rsync \
|
rsync \
|
||||||
ruby \
|
ruby \
|
||||||
|
@ -8,7 +8,13 @@ if [ "$(which openssl)" ];
|
|||||||
openssl genrsa -out privkey.pem 2048
|
openssl genrsa -out privkey.pem 2048
|
||||||
clear
|
clear
|
||||||
openssl dhparam -outform PEM -out dhparam.pem 1024
|
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
|
clear
|
||||||
|
|
||||||
if [ -f certs/trusted ];
|
if [ -f certs/trusted ];
|
||||||
@ -18,7 +24,7 @@ if [ "$(which openssl)" ];
|
|||||||
mkdir -p certs/trusted
|
mkdir -p certs/trusted
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv *.pem certs
|
#mv *.pem certs
|
||||||
|
|
||||||
echo "All done!"
|
echo "All done!"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user