ERR_CERT_AUTHORITY_INVALID with Argo Tunnel

I’m seeing a 502 Bad Gateway error, which is somewhat a relief because I don’t know how you’d end up with an origin cert showing up on a Cloudflare Tunnel hostname. Maybe your local DNS points to the wrong place.

The 502/504 errors are caused by a problem connecting to an upstream server - meaning your server is trying to initiate a process and this fails to work as expected or times out. In most cases of 502 / 504 errors, back-end servers are not communicating correctly. When this happens, you will see color page with Cloudflare branding and the Error 502 Bad Gateway or Error 504 Gateway Timeout. Review this Community Tip for fixing 502 or 504 gateway errors.