Caddy webserver - valid certificates for local services
- Setup a debian machine or use an existing machine
-
Install xcaddy (add xcaddy apt repository)
-
Install prebuilt Go language binaries from the official Go website
-
Build your own caddy binary with needed plugins - in this case include dns-netcup module
The dns-netcup plugin allows Caddy to automate the process of obtaining SSL certificates using DNS-01 challenges via Netcup's DNS API. This is required when you want to issue certificates for wildcard domains or when your services are not directly accessible from the public internet, as it enables certificate validation through DNS rather than HTTP.
-
Create systemd service file and enable it
-
Sample Caddyfile