Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to properly set up HTTPS for OnlyOffice

Following OnlyOffice's help center's instructions leads to the creation of security certificate declared as invalid by browsers, as it is self-signed.

The intention is to use OnlyOffice's server on Docker for NextCloud, which runs properly already on another server.

Currently, the certificates have been created in the directory suggested by the instructions:

/app/onlyoffice/DocumentServer/data/certs# ls
dhparam.pem  onlyoffice.crt  onlyoffice.csr  onlyoffice.key

I have followed all the given steps, and it does not work.

Is there a way to use LetsEncrypt instead of self-signed certificates?

I am not an IT management person, I am a simple developer trying to use OSS to not use Google Docs etc. Take this into consideration when providing guidance, as what you may take for granted, I may not.

like image 594
jansensan Avatar asked Jul 26 '26 23:07

jansensan


1 Answers

@jansensan - per onlyoffice docs at this link.

To secure the application via SSL basically two things are needed:

Private key (.key)
SSL certificate (.crt)

So you need to create and install the following files:

/app/onlyoffice/DocumentServer/data/certs/onlyoffice.key
/app/onlyoffice/DocumentServer/data/certs/onlyoffice.crt

Unfortunately, their documentation leaves key details out.
At this point it would help us help you if you provide exact command used, or share how you are
mounting "/app/onlyoffice/DocumentServer/data/certs" to the container.

Don't give up - we can figure this out.

like image 122
Rexx Rules Avatar answered Jul 28 '26 15:07

Rexx Rules