Skip to main content

Switching a DEB/RPM installation of ONLYOFFICE Apps Enterprise to HTTPS

Introduction​

When you install ONLYOFFICE Apps Enterprise from RPM/DEB packages, you can use the letsencrypt.org service and script to easily create a CA-signed certificate and switch the workspace to HTTPS with a single command.

The article below will explain how this can be done.

note

When switching to HTTPS, port 443 must be available.

Creating and installing CA-signed certificate​

Run the following script:

bash /usr/bin/apps-ssl-setup EMAIL DOMAIN

Where:

  • EMAIL is the email used for registration and recovery contact. Use comma to register multiple emails, for example: u1@example.com,u2@example.com.
  • DOMAIN is the address of the domain where your ONLYOFFICE Apps Enterprise workspace is installed.

The script will automatically create and install the letsencrypt.org CA-signed certificate to your server and restart the NGINX service for the changes to take effect.

Now your workspace should be available via the https:// address.

Using own certificates​

You can use your own certificates via the -f parameter:

bash /usr/bin/apps-ssl-setup -f yourdomain.com CERTIFICATE PRIVATEKEY

Where:

  • CERTIFICATE is the path to the certificate file for the domain.
  • PRIVATEKEY is the path to the private key file for the certificate.
note

A self-signed certificate must have a full chain to work correctly.

Now your workspace should be available via the https:// address.