Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node server js problem #3

Open
vino6665 opened this issue Jun 19, 2020 · 2 comments
Open

node server js problem #3

vino6665 opened this issue Jun 19, 2020 · 2 comments

Comments

@vino6665
Copy link

when run the node serer js ..commend getting folwoing error

internal/fs/utils.js:230
throw err;
^

Error: ENOENT: no such file or directory, open 'D:/C DRIVE/apache-tomcat-8.5.34SSL/webapps/peerconnection/munge-sdp/key.pem'
at Object.openSync (fs.js:458:3)
at Object.readFileSync (fs.js:360:35)
at Object. (C:\Users\Yuvaraj Sabapathi\Desktop\vc\server.js:17:21)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'D:/C DRIVE/apache-tomcat-8.5.34SSL/webapps/peerconnection/munge-sdp/key.pem'

@alireza5014
Copy link

remove node_modules and run this command:
npm install

@Zw1d
Copy link

Zw1d commented Apr 12, 2021

You have to create your own certificate/key.
Change 'D:/C DRIVE/apache-tomcat-8.5.34SSL/webapps/peerconnection/munge-sdp/key.pem')
to
key.pem
and the other path to cert.pem
Generate certs with this:
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365-nodes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants