[Libreoffice-commits] online.git: docker/scripts
Andras Timar (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jun 13 11:18:58 UTC 2019
docker/scripts/run-lool.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit c13fe19667b51176e831084d2135b9803493dcdd
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Thu Jun 13 12:14:01 2019 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Jun 13 13:18:40 2019 +0200
docker: fix SSL cert generation with OpenSSL 1.1.1
Change-Id: I1534cd3d3da19ac17e65571e6e2f7e7b0a8e61ca
Reviewed-on: https://gerrit.libreoffice.org/73953
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/docker/scripts/run-lool.sh b/docker/scripts/run-lool.sh
index 662828ec7..bc0ef7d64 100755
--- a/docker/scripts/run-lool.sh
+++ b/docker/scripts/run-lool.sh
@@ -15,12 +15,13 @@ if test "${DONT_GEN_SSL_CERT-set}" == set; then
mkdir -p /opt/ssl/
cd /opt/ssl/
mkdir -p certs/ca
+openssl rand -writerand /root/.rnd
openssl genrsa -out certs/ca/root.key.pem 2048
openssl req -x509 -new -nodes -key certs/ca/root.key.pem -days 9131 -out certs/ca/root.crt.pem -subj "/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=Dummy Authority"
mkdir -p certs/{servers,tmp}
-mkdir -p "certs/servers/localhost"
-openssl genrsa -out "certs/servers/localhost/privkey.pem" 2048 -key "certs/servers/localhost/privkey.pem"
-openssl req -key "certs/servers/localhost/privkey.pem" -new -sha256 -out "certs/tmp/localhost.csr.pem" -subj "/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost"
+mkdir -p certs/servers/localhost
+openssl genrsa -out certs/servers/localhost/privkey.pem 2048
+openssl req -key certs/servers/localhost/privkey.pem -new -sha256 -out certs/tmp/localhost.csr.pem -subj "/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost"
openssl x509 -req -in certs/tmp/localhost.csr.pem -CA certs/ca/root.crt.pem -CAkey certs/ca/root.key.pem -CAcreateserial -out certs/servers/localhost/cert.pem -days 9131
mv certs/servers/localhost/privkey.pem /etc/loolwsd/key.pem
chown lool: /etc/loolwsd/key.pem
More information about the Libreoffice-commits
mailing list