taunnnt0 1 Posted 4 hours ago Posted 4 hours ago Hello, trying to get a certificate now for the past three days. My Caddyfile is like so mysubdomain.dedyn.io { reverse_proxy http://localip:port tls { dns desec { token "mytoken" } } } I get the add on for dedyn and make the new caddy file in xcaddy. I run caddy by caddy start. It's happy until it gets to 2026/03/22 16:02:31.017 ←[31mERROR←[0m tls.obtain unable to unlock {"identifier": "mysubdomain.dedyn.io", "lock_key": "issue_cert_mysubdomain.dedyn.io", "error": "remove C:\\Users\\myusername\\AppData\\Roaming\\Caddy\\locks\\issue_cert_mysubdomain.dedyn.io.lock: The system cannot find the file specified."} 2026/03/22 16:02:31.017 ←[31mERROR←[0m tls job failed {"error": "mysubdomain.dedyn.io: obtaining certificate: context canceled"} 2026/03/22 16:02:31.017 ←[34mINFO←[0m shutdown complete {"signal": "SIGINT", "exit_code": 0} Emby is set up to public ports are 80, 443. I do have secure connections are handled by proxy. What is the issue? Is there a better DDNS to use (that's free)? That's more easy to make a certificate? Thanks
js28194 41 Posted 1 hour ago Posted 1 hour ago (edited) I use DDNS client built into my router so couldn't help you there and honestly I don't know all that other stuff you have in there. Below has served me well for years now. You actually don't even need the logging piece, since it's (in my humble opinion) horrible to read, I just never bothered taking it out. This my Caddy file (caddy with no file extension) { email myemail@gmail.com } emby.mydomain.com { log { output file C:\caddy\logs\emby_access.log { roll_size 5MiB # Set max size 5 MB roll_keep 2 # Keep at most 2 log files roll_keep_for 96h # Keep log files for 4 days } } reverse_proxy http://localhost:8096 } Also, delete everything out of C:\\Users\\myusername\\AppData\\Roaming\\Caddy\\locks and C:\\Users\\myusername\\AppData\\Roaming\\Caddy\\Certificates Turn OFF Remote Connections to Emby (as is now handled by reverse proxy) Type Caddy look at all the junk fly by, test from a smart phone NOT on your Wifi, close the caddy box, proceed to creating a window service to run caddy so you it runs in the background without the window, start the service then profit. Edited 1 hour ago by js28194
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now