Closed jmarceli closed 8 years ago
For anyone having same problem. The solution is to define:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
Before connecting.
A (better) way to do this non-globally is to use the secureOptions
config option to pass options (e.g. rejectUnauthorized: false
) directly to node's tls.connect()
.
Thanks. My answer was just a quick fix.
When connecting to my server I get:
Error: certificate has expired
. Is it possible to ignore this error and establish connection anyway?