cloudflare / argo-tunnel-examples

209 stars 78 forks source link

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

Open clarkezone opened 2 years ago

clarkezone commented 2 years ago

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?

nmldiegues commented 2 years ago

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/
clarkezone commented 2 years ago

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:/#