I get this error when i run the above, any idea how to fix?
Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1502:34)
at TLSSocket.emit (events.js:314:20)
at TLSSocket._finishInit (_tls_wrap.js:937:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:711:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
messages: []
}
Hi i thought this was related to the
insecureSkipTlsVerify
option in the client but setting it to true doesn't seem to fix the issue..I get this error when i run the above, any idea how to fix?