By encrypting during transmission, you can use the HTTPS protocol to achieve traffic encryption. This can protect your data from being intercepted and converted during the process of moving from one location to another (for example, when uploading documents to the cloud).


You can use the letsencrypt.org service and a script that allows the creation of CA signed certificates to switch the self hosted ONLYOFFICE collaboration space to the HTTPS protocol with a single command.




How to operate


Please note that the following instructions apply to ONLYOFFICE Collaboration Space Enterprise Edition installed using Docker. If you need other options, please click on the guide link below.

Certificate signed by CA

Firstly, run the installation script:



bash docspace-enterprise-install.sh docker --letsencryptmail user@example.com --letsencryptdomain yourdomain.com


In this script, specify the following parameters:

Letsencryptmail: Used for registering and restoring contact emails. If you need to register multiple emails, please use commas to separate them, for example:

u1@example.com,u2@example.com。


Letsencryptdomain: The address of the domain where ONLYOFFICE Collaboration Space Enterprise Edition is installed.



This script will automatically create a CA signing certificate for letsencrypt.org and install it on your server, restart the NGINX service for the changes to take effect.



Alternatively, you can manually switch to HTTPS from the/app/onlyoffice/configure/docspace ssl setup file:

bash /app/onlyoffice/config/docspace-ssl-setup user@example.com yourdomain.com


Use your own certificate


If you want to use your own certificate, please run another installation script with the following parameters:

bash docspace-enterprise-install.sh docker --certfile path --certkeyfile path


Here, please specify:

Certfile: The path to the certificate file for the domain.

Certkeyfile: The path to the private key file of the certificate.



When using your own certificate, you can also manually switch from the/app/onlyoffice/configure/docspace ssl setup file:

bash /app/onlyoffice/config/docspace-ssl-setup -f /app/onlyoffice/fullchain.pem /app/onlyofficeprivkey.pem

Success! Now, you can access ONLYOFFICE Collaboration Space Enterprise Edition through https://address.