expressjs-structure icon indicating copy to clipboard operation
expressjs-structure copied to clipboard

Error: ENOENT: no such file or directory, open '/etc/ssl/cert.pem'

Open algerrr opened this issue 3 years ago • 2 comments

Tried to clone the repo. Did an npm install. Then npm start. Received this error.

image

algerrr avatar Jan 15 '22 22:01 algerrr

After creating a self signed certificate for the server, going to this url, I am getting this error.

image image

algerrr avatar Jan 16 '22 01:01 algerrr

If anyone else is starting out here and getting the same error, simple remove

    ssl: {
      mode: 'VERIFY_IDENTITY',
      ca: fs.readFileSync('/etc/ssl/cert.pem', 'utf-8'),
    }

from src/configs/db.config.js

Hope it will solve your issue

ankit18-259 avatar Jan 01 '24 06:01 ankit18-259