davisjam / vuln-regex-detector

Detect vulnerable regexes in your project. REDOS, catastrophic backtracking.
MIT License
320 stars 29 forks source link

Server certificate has expired #65

Open immo-huneke-zuhlke opened 5 years ago

immo-huneke-zuhlke commented 5 years ago

I have been unable to get the client to work initially, because every call to "test()" came back with "INVALID". The cause turned out to be this:

{ "code": "CERT_HAS_EXPIRED" } Expired: Tuesday, 30 April 2019 at 05:56:02 British Summer Time

A temporary workaround is to defeat server certificate checking in the client by inserting the following line just before the call to test():

process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;

Obviously not to be recommended!

davisjam commented 5 years ago

@immo-huneke-zuhlke Thanks for the heads up. I will get this fixed pronto.