• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Express App + NodeJs Extension + SSL Problem

xDrago

New Pleskian
Hello,

im facing a problem with permission for the ssl certificate. The app starts without any problem via SSH but when im starting it with the Plesk NodeJs App im getting the following Errror:

Code:
 Error: EACCES: permission denied, open '/usr/local/psa/var/modules/letsencrypt/etc/live/mydomain.com/privkey.pem'

Now I tried a lot to give the right permissions to the directory with chmod and chown but it is not working.

I found this Thread: Resolved - Files With Bad Permission: User and Group is Root
They come to the conclusion, that its not neccessary to specify the SSL certs in the app. But my app is using socket.io and if i dont specify the certificates in the app im getting connection Errors caused by SSL.

Code:
ERR_SSL_VERSION_OR_CIPHER_MISMATCH

So maybe for a classic webapp this would be no problem but im trying to run a plain server here. It has no interface on the browser.

Can anyone help me?
 
As which user is your app running?

Please post the access rights and ownership of the certificate files and directories you're trying to access. This should do it:

Code:
ls -als /usr/local/psa/var/modules/letsencrypt/etc
ls -als /usr/local/psa/var/modules/letsencrypt/etc/archive/mydomain.com
 
Thanks for the reply. I dont know which user runs the node app. Is it the user connected to the plesk customer?

However i figured to fix it myself by giving the user the correct permissions but it seems like the NodeJs Extension is simply not designed for a server application? It was running but only as long as I am trying to visit the domain name in the browser. As soon as i stopped the server stopped too.

For now im running it via SSH. maybe thats the only way?
 
it is showing following files which of the files are required documentation shows it required .cert and .pem
cert.pem
chain.pem
fullchain.pem
privkey.pem
 
Back
Top