Wednesday 7 February 2018

Can't get https request with certificate to work: unable to verify first certificate

I've been working on this for a while, I'm trying to query a server for JSON over https. I went to the server on my browser and downloaded the certificates, converted them to pem and put all three in one file called fullchain.pem. Now when I try to run my node script, I get the error "Unable to verify first certificate". However, when I try to curl the webpage, I get a response by using the same file with --cacert. I'm out of ideas at this point, and would appreciate any help!

Submitted February 07, 2018 at 06:45PM by smileypig2

No comments:

Post a Comment