cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

🐛Cloudflared Windows Tunnel Setup Failing Due to Missing cert.pem and Inconsistent Service Installation How to Fully Clean Up and Reinstall

Open thiagopereira-del opened this issue 3 weeks ago • 1 comments

I'm trying to set up a dedicated Cloudflare Tunnel for a specific customer on Windows, but I'm running into several issues when installing and managing the cloudflared service. When I run cloudflared.exe service install , the log shows INF cloudflared agent service is installed windowsServiceName=Cloudflared followed by Cannot install event logger: SYSTEM\CurrentControlSet\Services\EventLog\Application\Cloudflared registry key already exists. After that, if I run sc query Cloudflared, Windows returns error 1060 saying the service does not exist. In addition, when I try cloudflared tunnel list, I get Cannot determine default origin certificate path. No file cert.pem in ~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp. You need to specify the origin certificate path by specifying the origincert option in the configuration file, or set TUNNEL_ORIGIN_CERT environment variable and Error locating origin cert: client didn't specify origincert path. Because of this, I can’t obtain or use the origin certificate (cert.pem) for this customer’s tunnel

thiagopereira-del avatar Dec 05 '25 20:12 thiagopereira-del

same issue on a few linux tunnels

jaredcdep avatar Dec 09 '25 10:12 jaredcdep