argo-tunnel-examples icon indicating copy to clipboard operation
argo-tunnel-examples copied to clipboard

The named tunnel example fails with x509: certificate signed by unknown authority

Open clarkezone opened this issue 3 years ago • 2 comments

I'm attempting to get the simple named tunnel example working in a rapi homelab k3s cluster on my home lan. I've verified the tunnel on my mac now attempting to get it running in the cluster.

I'm getting this error message:

error parsing tunnel ID: REST request failed: Get "https://api.cloudflare.com/client/v4/accounts/976950979e32e569298940bab05aab7a/tunnels?is_deleted=false&name=example-tunnel": x509: certificate signed by unknown authority

Any pointers?

clarkezone avatar Nov 23 '21 03:11 clarkezone

That means your operating system trust chain does not know/trust the root certificate authority that signs api.cloudflare.com certificate.

It seems to be independent of tunnels or the example in practice.

What happens if you run:

curl https://api.cloudflare.com/client/v4/

nmldiegues avatar Nov 23 '21 12:11 nmldiegues

When I exec into the container and run the suggested curl command (having installed into the container) I get:

root@cloudflared-799fbdb4cb-d4ptf:/# curl https://api.cloudflare.com/client/v4/ {"success":false,"errors":[{"code":7000,"message":"No route for that URI"}],"messages":[],"result":null}root@cloudflared-799fbdb4cb-d4ptf:/#

clarkezone avatar Nov 23 '21 20:11 clarkezone