[GH-ISSUE #502] Multiple Cert-files break run-document-server.sh #239

Closed
opened 2026-02-26 10:31:14 +03:00 by kerem · 2 comments
Owner

Originally created by @J-a-x-u on GitHub (Sep 23, 2022).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/502

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.

github.com/ONLYOFFICE/Docker-DocumentServer@ad066be1c8/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

Originally created by @J-a-x-u on GitHub (Sep 23, 2022). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/502 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`
kerem closed this issue 2026-02-26 10:31:14 +03:00
Author
Owner

@igwyd commented on GitHub (Oct 25, 2022):

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.

<!-- gh-comment-id:1290270317 --> @igwyd commented on GitHub (Oct 25, 2022): 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 ](https://github.com/ONLYOFFICE/document-server-package/blob/master/common/documentserver/nginx/ds-ssl.conf.tmpl.m4#L39)config anyway.
Author
Owner

@Rita-Bubnova commented on GitHub (Jun 17, 2024):

This issue was closed due no response.

<!-- gh-comment-id:2172457020 --> @Rita-Bubnova commented on GitHub (Jun 17, 2024): This issue was closed due no response.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#239
No description provided.