cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

🐛 ERR Cannot determine default origin certificate path

Open firecow opened this issue 1 year ago • 8 comments

Describe the bug When starting a cloudflared tunnel run $TUNNEL_ID command, I'm getting an error in the logs

ERR Cannot determine default origin certificate path. No file cert.pem in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared]. You need to specify the origin certificate path by specifying the origincert option in the configuration file, or set TUNNEL_ORIGIN_CERT environment variable originCertPath=

To Reproduce Steps to reproduce the behavior:

  1. Just run a cloudflared tunnel run command, with a valid $tunnel_id.json credentials file

Expected behavior No error log should be printed, about missing cert.pem file's, when it obviously isn't needed by the cloudflared tunnel run command.

firecow avatar Aug 04 '23 09:08 firecow

Thanks for the report.

Would you like to open a PR to address this?

joliveirinha avatar Aug 14 '23 19:08 joliveirinha

Thanks for the report.

Would you like to open a PR to address this?

I can try 😁

firecow avatar Aug 14 '23 19:08 firecow

Same here, how did you solve it ?

aluferraz avatar Nov 03 '23 21:11 aluferraz

@aluferraz The issue is still open.

firecow avatar Nov 04 '23 07:11 firecow

  • same here

tranghaviet avatar Nov 08 '23 07:11 tranghaviet

same issue

djj106 avatar Nov 12 '23 21:11 djj106

a monkey patch

https://www.reddit.com/r/CloudFlare/comments/u4bwom/cloudflare_tunnels_error/

Download the pem cert from Zero Trust for the argo tunnel. Upload it to /etc/cloudflared

https://dash.cloudflare.com/argotunnel

then select the zone and it should then download the cert

inRm3D avatar Nov 29 '23 15:11 inRm3D

It worked when I logged in with the root account and executed the command.

HyunSu1768 avatar Nov 30 '23 09:11 HyunSu1768