I am running into a problem where my node/keystonejs app returns a NET::ERR_CERT_AUTHORITY_INVALID error. I’ve been generating my certificates with certbot standalone:
I followed this article regarding setting up keystonejs and letsencrypt and have tried debugging with the commands as outlined in the template below. I’m really lost in terms of how to go about fixing this problem, any help would be so greatly appreciated:
Ok interesting. I’ve set my node environment to production which I’ve confirmed inside node, and when I requested the certificate, I didn’t use the --staging flag.
Sorry, but most threads I’ve seen have recommended simply completely purging letsencrypt, but I’m wondering if there’s a few more debugging steps I can try first?
edit: I’ve completely purged and reinstalled letsencrypt from my system, and am running into the same problem, where it always returns the Fake LE Intermediate
Are you running your server with NODE_ENV=production ?
Are you sure that Keystone/Greenlock has not saved the old certificate on disk? Can you do some printf debugging inside that file in your node_modules/ to see what values are being passed?
Oh my goodness, YES. Thank you. I do not understand why this isn’t documented anywhere - I will send a note to the keystone team. This is the issue, which is odd as my NODE_ENV is definitely set to production. I also didn’t need to be issuing manual certificates as it was handled automatically.
So having wiped everything then making this adjustment, everything is finally working.