etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

Etherpad with LetsEncrypt

Open kernelfreak opened this issue 10 years ago • 4 comments

Hello friends,

I am trying to run LetsEncrypt on our server with SSL. Currently I have filled out the SSL configuration in this manner for Etherpad with SSL certificates provided by LetsEncrypt :

 "ssl" : {
            "key"  : "/etc/letsencrypt/live/www.project_name.de-0001/privkey.pem",
            "cert" : "/etc/letsencrypt/live/www.project_name.de-0001/cert.pem",
            "ca": "/etc/letsencrypt/live/www.project_name.de-0001/chain.pem"
          },

But when I try to run Etherpad, I get the following error :


[2016-11-04 13:41:15.108] [INFO] console - Report bugs at https://github.com/ether/etherpad-lite/issues
[2016-11-04 13:41:15.108] [INFO] console - Your Etherpad version is 1.6.0 (7dd934f)
[2016-11-04 13:41:15.109] [INFO] console - SSL -- enabled
[2016-11-04 13:41:15.109] [INFO] console - SSL -- server key file: /etc/letsencrypt/live/www.project_name.de-0001/privkey.pem
[2016-11-04 13:41:15.109] [INFO] console - SSL -- Certificate Authority's certificate file: /etc/letsencrypt/live/www.project_name.de-0001/cert.pem
[2016-11-04 13:41:15.111] [ERROR] console - Error: EISDIR: illegal operation on a directory, read

kernelfreak avatar Nov 04 '16 12:11 kernelfreak

If you try to list the files on /etc/letsencrypt/live/www.project_name.de-0001/ directory with the same user you're running Etherpad, can you get any result? I mean, do you have permission to access this folder?

lpagliari avatar Nov 04 '16 17:11 lpagliari

@lpagliari : I am runnning etherpad as root with --root as parameter. If necessary I can move the files to some other location.

kernelfreak avatar Nov 07 '16 08:11 kernelfreak

I had to remove the CA line and then it worked.

kernelfreak avatar Nov 09 '16 09:11 kernelfreak

Thanks, @kernelfreak ! I hope this helps others.

lpagliari avatar Nov 09 '16 23:11 lpagliari