Docker-DocumentServer icon indicating copy to clipboard operation
Docker-DocumentServer copied to clipboard

Multiple Cert-files break run-document-server.sh

Open J-a-x-u opened this issue 2 years ago • 1 comments

The recent change in run-document-server.sh breaks SSL if one has the host's certificate and intermediate certificates in separate files, thus *.crt expands to multiple files an leads to an error.

https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/ad066be1c82813514da3cfd4ee768d098c5a741f/run-document-server.sh#L44

I would propose to check for *.key instead since this should always be only one file: if [[ -d ${DATA_DIR}/certs ]] && [ -e ${DATA_DIR}/certs/*.key]; then

J-a-x-u avatar Sep 23 '22 13:09 J-a-x-u

Hello @J-a-x-u. I don't think it's necessary. Сommon practice to bundle all certs into one file, it will be your certificate. We use the fullchain in our nginx config anyway.

igwyd avatar Oct 25 '22 09:10 igwyd

This issue was closed due no response.

Rita-Bubnova avatar Jun 17 '24 07:06 Rita-Bubnova