fix TLS support, attempt 1
continuous-integration/drone/push Build is passing
Details
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:
parent
67833a1b2d
commit
14b302755a
|
@ -31,6 +31,7 @@ RUN \
|
|||
libreadline-dev \
|
||||
locales \
|
||||
mercurial \
|
||||
libssl1.0-dev \
|
||||
python \
|
||||
rsync \
|
||||
ruby \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue