Rick -

Based on this SO question:
https://stackoverflow.com/questions/20082893/unable-to-verify-leaf-signature

setting NODE_TLS_REJECT_UNAUTHORIZED might fix your problem.

If you don't have access to the code, you can set a shell variable and
restart Node:

 export NODE_TLS_REJECT_UNAUTHORIZED=0

CAUTION: This should only be used as a TEMPORARY fix until you can get your
certs updated. It opens you up to attacks.

Cheers,

- Bill

On Mon, Oct 18, 2021 at 3:44 PM Rick Jarvis <r...@magicmail.mooo.com> wrote:

> Can anyone tell me (urgently lol) how to ignore invalid certificates with
> nano?
>
> My backups haven’t been running and I’m desperate.
>
> I’ll then need to figure out why, despite having updated all the routes
> etc (due to R3 expiry) it’s still not working!
>
> Error: unable to verify the first certificate
>     at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
>     at TLSSocket.emit (node:events:390:28)
>     at TLSSocket._finishInit (node:_tls_wrap:944:8)
>     at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12) {
>   scope: 'socket',
>   errid: 'request',
>   code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
>   description: 'unable to verify the first certificate',
>   stacktrace: [
>     'Error: unable to verify the first certificate',
>     '    at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)',
>     '    at TLSSocket.emit (node:events:390:28)',
>     '    at TLSSocket._finishInit (node:_tls_wrap:944:8)',
>     '    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)'
>   ]
> }
>
> --
> Rick Jarvis

Reply via email to