The faster way to switch Community Server to HTTPS is to use the provided script. It is located here:
Place the created certificates to the
/var/www/onlyoffice/Data/certs/. There must be two files there:
And run the script:
sudo bash /var/www/onlyoffice/Tools/default-onlyoffice-ssl.sh
It will do everything needed to switch your Community Server installation to HTTPS.