What does the 'UnhandledPromiseRejectionWarning: Error: self signed certificate in certificate chain' error mean?

Question

Grade: Education Subject: Support
What does the 'UnhandledPromiseRejectionWarning: Error: self signed certificate in certificate chain' error mean?
Asked by:
113 Viewed 113 Answers

Answer (113)

Best Answer
(300)
This error typically indicates that your Node.js application is trying to connect to a server using HTTPS, and the server's SSL certificate is self-signed. A self-signed certificate means it wasn't issued by a trusted Certificate Authority (CA), so Node.js, by default, rejects it to ensure security.