DocSpace Community Problem – when switching to https

DocSpace Community Problem - when switching to https.

Installation on Windows 2019 - everything works great with http, I can log in, configure everything, create and manage spaces.
When I activate https using the Powershell script under sbin, I only get a welcome site and can maybe access the DocSpace admin area - but no longer my 2 test spaces I set up.

Installed as a local admin - the server is in Active Directory.

Using an AD certificate. Installed newest Version.

What can I do - where might possible errors be - or can the Community version only do http??

after https:

Hi @Jens, welcome to the community! :blush:

Thanks for the screenshots — they’re very helpful.

The page you’re seeing after enabling HTTPS is the Document Server welcome page, not DocSpace. Your spaces and data are still there — the request just isn’t reaching the DocSpace frontend.

We tested the HTTPS switch on our lab (DocSpace Community on Windows Server, self-signed certificate, docspace-ssl-setup.ps1 -f) and it worked without issues — rooms were accessible over HTTPS as expected. So the script itself is not the problem.

The most likely cause is a hostname mismatch: your DocSpace tenant was registered under the hostname you used over HTTP, and the domain on your AD certificate (the one you passed to the script) is different. DocSpace resolves the portal by the exact hostname in the browser, so if those don’t match, it can’t find your existing tenant.

To help narrow this down, could you please share:

  1. The exact URL you used to access DocSpace over HTTP (e.g. http://servername, http://server.domain.local, or an IP address).
  2. The exact command you ran — specifically the domain you passed to docspace-ssl-setup.ps1 -f.
  3. Your DocSpace version number.

This should be enough to pinpoint the issue.

Reference: Switching DocSpace Community to HTTPS on Windows

Hello Nurollo,

thank you very much for your reply.

  1. Directly after the installation – due to the lack of input options during the installation – I accessed DocSpace via http://servername. But I could also access http://servername.domain.de – so both worked. The newly created spaces were also reachable at space01.domain.de.
  2. docspace-ssl-setup.ps1 -f servername.domain.de path to the certificate (pfx)
  3. ONLYOFFICE DocSpace v.3.7.1005
    ONLYOFFICE Docs v.9.4.0.129

Or is there a way to change the domain name from http://servername to http://servername.domain.de? I haven’t found one yet … :frowning:

I think it would be better to have a prompt during the installation to change the domain name…



I just noticed that with the last installation I can no longer access http://servername.domain.de

still works - http://space01.domain.de

the previous installations were not the latest version, but the one before - I no longer have the version numbers

Hi Jens,

Thanks for the update — I think the main issue is the certificate format. The script expects two separate PEM files (certificate + key), but you passed a PFX file. You can convert it with OpenSSL:

openssl pkcs12 -in certificate.pfx -clcerts -nokeys -out C:\docspace-cert.pem
openssl pkcs12 -in certificate.pfx -nocerts -nodes -out C:\docspace-key.pem

If your AD certificate has intermediate CAs, include the full chain in the cert file (guide reference). Then rerun:

.\docspace-ssl-setup.ps1 -f servername.domain.de C:\docspace-cert.pem C:\docspace-key.pem

Regarding the domain — in your first screenshot there’s actually a “Domain-Einstellungen” section with an “Bearbeiten” button in the admin panel. You could try updating the domain to servername.domain.de there.

Also keep in mind: since your spaces use subdomains like space01.domain.de, your certificate needs to cover those too — either a wildcard (*.domain.de) or SANs for each.

Could you try converting the certificate and rerunning the script?

Hi Nurollo,

thanks a lot for your reply. I tried it this morning with the converted certificates – still didn’t work. The OpenResty service didn’t start. First, I looked at the OpenResty logs. The certificate wasn’t recognized there. Then I checked the nginx.conf – that’s where I found the error. In the HTTPS instructions for the DocServer, there are double \\ in the path to the certificates, which apparently the PowerShell script doesn’t handle.

The only problem (so far) that still exists – I can’t access the Space Management – I get a 403 there – sorry, access denied.

Hi @Jens,

Could you share the exact certificate paths you used in the command and the lines from nginx.conf that had the double backslashes? We want to understand whether the script generated those paths or if something else caused it.

Hello Nurollo,

There just weren’t any double backslashes present, only single ones, and according to the instructions, that’s wrong for Windows systems.

This was the error message in the OpenResty Nginx.log:
2026/07/06 13:40:41 [emerg] 12796#12984: cannot load certificate “C: mpoutcert_name.pem.pem”: BIO_new_file() failed (SSL: error:0200107B:system library:fopen:Unknown error:fopen(‘C: mpoutcert_name.pem’,‘r’) error:2006D002:BIO routines:BIO_new_file:system lib).

The paths were wrong in the onlyoffice-proxy.conf, not in the nginx.conf - Lines 60 + 61

Hi @Jens,

Thanks for the details — this looks like a bug in the script. The certificate paths appear to be written with backslashes into the Nginx config, which causes characters like \t to be interpreted as escape sequences. We’ve reported this internally for investigation.

As a workaround, you can manually replace the backslashes with forward slashes in C:\OpenResty\conf\onlyoffice-proxy.conf (lines 60–61).

Regarding the 403 on Space Management — which URL are you using when you get that error?

hello Nurollo,

I go to the space management in my settings (https://space01.domain.de/management) and after opening it, it redirects to (https://space01.domain.de/error/403) - so far I haven’t found the correct log with the error …

Hi @Jens,

That might be a separate issue from the certificate one. You’re accessing Space Management from space01.domain.de, which is a space subdomain. Could you try accessing it from your main portal domain instead — e.g. https://servername.domain.de/management?

hello Nurollo,

it’s the same result - when I access it with https://servername.domain.de/management

from Openresty access-proxy.log

172.20.1.15 - - [13/Jul/2026:10:21:30 +0200] “GET /management/spaces HTTP/1.1” 307 3202 “https://servername.domain.de/rooms/shared/filter?searchArea=Active&page=1&sortBy=DateAndTime&sortOrder=descending” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0”
127.0.0.1 - - [13/Jul/2026:10:21:30 +0200] “GET /error/403 HTTP/1.1” 200 4099 “https://servername.domain.de/rooms/shared/filter?searchArea=Active&page=1&sortBy=DateAndTime&sortOrder=descending” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0”

1 Like

Thanks for the log — the 307 redirect to /error/403 means it’s the DocSpace application itself denying access, not the proxy configuration. To understand why, we’d need to check the DocSpace backend logs.

Could you zip the folder C:\Program Files (x86)\Ascensio System SIA\DocSpace\Logs\ and upload it to any file sharing service (Google Drive, WeTransfer, etc.)?
You can share the link here or via DM if you prefer.

Good morning Nurollo,

I’ve sent you the logs via DM.

1 Like

Hi @Jens,

Had a look at the logs — thanks for sharing. The Management service has been unable to reach the backend API since the HTTPS switch (every internal call fails with fetch failed), which is what’s causing the 403.

I think the Node.js services don’t trust your AD certificate. The script only sets up certificate trust automatically for self-signed certs. Could you try this in PowerShell (as admin):

[System.Environment]::SetEnvironmentVariable("NODE_EXTRA_CA_CERTS", "C:\path\to\your\certificate.pem", [System.EnvironmentVariableTarget]::Machine)

(use the path to your converted PEM file)

Then restart the server.

If it still doesn’t work, the PEM file might need to include the root/intermediate CA certs from your AD — just let me know.

Hi Nurollo,

thanks a lot for your help.

I had to adjust the certificate a bit to include the root certificate:
openssl pkcs12 -in certificate.pfx -nokeys -out C:docspace-cert.pem)

and now the Space management works. Thank you!

1 Like

Glad it’s working now!
And good catch on including the root certificate in the PEM file — that was the missing piece.
Regarding the backslash issue you found earlier in the script, it’s been confirmed and registered as a bug on our end. Thanks for reporting it.