cloudflared
cloudflared copied to clipboard
🐛 ERR Cannot determine default origin certificate path
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:
- 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.
Thanks for the report.
Would you like to open a PR to address this?
Thanks for the report.
Would you like to open a PR to address this?
I can try 😁
Same here, how did you solve it ?
@aluferraz The issue is still open.
- same here
same issue
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
It worked when I logged in with the root account and executed the command.