I've been developing a website and I've been working with NodeJS vs.18.1.0 with Socket.io and been having intermittent problems with the SSL certificate for the Node server (not the regular website running on port 80, the node server runs on port 3000.) Since Dreamhost doesn't provide me root access / file access to the certificate path locations I had to manually copy and paste the certificates into a key.key file and a cert.cer file for my server.js to refer to.
Here's the weird thing, on my mac laptop running BigSur I don't experience any certificate problems, everything works great. But, when I work on my iMac running Catalina I get this error message:
NET::ERR_CERT_DATE_INVALID error when it tries to connect. To troubleshoot thus far, I've tried reinstalling the certificate, I've emptied my cache, I restarted my node.js server. I've used completely different browsers on the machines. A clue I'm getting is that no matter what web browser I use on my laptop the certificate works fine, but no matter what web browser I use on my iMac I get the certificate error message. I'm completely baffled why on one machine it works perfect, on another it breaks. Any ideas?
Remember: the regular website certificate runs perfect. It's only the node.js running on port 3000 I get the error.
My web server is (include version): Apache.
The operating system my web server runs on is (include version): Ubuntu 20.04.4 LTS
My hosting provider, if applicable, is: Dreamhost.com
I can login to a root shell on my machine (yes or no, or I don't know): No root access.
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): Yes
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you're using Certbot): Not using certbot.