node
TLS: Self-signed certificate error
UNABLE_TO_VERIFY_LEAF_SIGNATURE|SELF_SIGNED_CERT
Fixes
- 1.Add CA certificate to trusted: ca option
- 2.Set NODE_TLS_REJECT_UNAUTHORIZED=0 for dev
- 3.Use proper certificate from CA for production
tlscertificateself-signed
Related Errors
node3 fixes
EADDRINUSE: Port already in use
Error: listen EADDRINUSE.*port
- •Kill process using the port: lsof -i :PORT
- •Use different port
node3 fixes
ECONNREFUSED: Connection refused
Error: connect ECONNREFUSED
- •Check target server is running
- •Verify host and port are correct
node3 fixes
ENOENT: No such file or directory
ENOENT.*no such file or directory
- •Check file path is correct
- •Use path.resolve for absolute paths