NodeJS backend service HTTPS/SSL error

I have a VPS and a domain, and I used an “A” route to map the domain to the VPS’s IP.
All things work fine here.
I also have a Node.js backend service that listens on the HTTPS port (8443).
I also used the Cloudflare-created SSL on it.
The problem is that the clients can’t execute any web service unless they turn off SSL validation!
Because of the following error:
Error: SSL peer certificate or SSH remote key was not OK

If they turn off the SSL validation, everything will work fine. but I can’t ask my clients to do that!


  • My webservice endpoint is somethings like "https://mydomainname:8443/tapi/login", i used domainname not direct IP.
  • I tripple checked the node js code, i’m 100% sure that the code is ok.

I’ve been dealing with this issue for about ten days.
Thank you in advance.

Can you share the domain that is having the issue?

No problem, I can PM the domain to you but since I’m a new member it seems I don’t have access to PM, is there a way I can share it with you privately?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.