• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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