You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: ENOENT: no such file or directory, open '/root/mediasoup-demo/server/certs/fullchain.pem'
at Object.openSync (node:fs:603:3)
at Object.readFileSync (node:fs:471:35)
at runHttpsServer (/root/mediasoup-demo/server/server.js:451:13)
at run (/root/mediasoup-demo/server/server.js:75:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/root/mediasoup-demo/server/certs/fullchain.pem'
}
Node.js v18.17.1
The text was updated successfully, but these errors were encountered:
[root@centos8 certs]# openssl genrsa -out privkey.pem 2048
Generating RSA private key, 2048 bit long modulus (2 primes)
..............................................................................................................+++++
...............+++++
e is 65537 (0x010001)
[root@centos8 certs]# openssl req -new -key privkey.pem -out csr.pem
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:Email Address []:Please enter the following 'extra' attributesto be sent with your certificate requestA challenge password []:An optional company name []:[root@centos8 certs]# [root@centos8 certs]# openssl x509 -req -days 365 -in csr.pem -signkey privkey.pem -out certificate.pemSignature oksubject=C = XX, L = Default City, O = Default Company LtdGetting Private key[root@centos8 certs]# cat privkey.pem certificate.pem > fullchain.pem[root@centos8 certs]# lscertificate.pem csr.pem fullchain.pem privkey.pem
node:fs:603
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, open '/root/mediasoup-demo/server/certs/fullchain.pem'
at Object.openSync (node:fs:603:3)
at Object.readFileSync (node:fs:471:35)
at runHttpsServer (/root/mediasoup-demo/server/server.js:451:13)
at run (/root/mediasoup-demo/server/server.js:75:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/root/mediasoup-demo/server/certs/fullchain.pem'
}
Node.js v18.17.1
The text was updated successfully, but these errors were encountered: