Sunday, 14 June 2020

Debug & fix certificate has expired issue

I recently started getting "CERT_HAS_EXPIRED" errors when doing requests to: https://overheid.io/ (I checked their certificate and it's not an expired certificate).I am using an end-of-life version of nodejs (v8.14.0) for this project so I'm assuming: one of the certificates bundled with this node version has expired. (upgrading the node version is not an option for now)I would like to understand how to debug & patch this the right way:- setting NODE_DEBUG='tls,https' doesn't really give me more info- I need to understand which cert/s have expired and the next step is how to override them the right wayI saw that their cert is signed by: COMODO RSA Domain Validation Secure Server CA (so I was guessing that's what expired, trying to set: NODE_EXTRA_CA_CERTS_FILE / SSL_CERT_FILE also didn't help)Please do not suggest to use rejectUnauthorized:false, I need a secure solution to patch this issue.

Submitted June 14, 2020 at 03:25PM by maltdit

No comments:

Post a Comment