1. The problem I’m having:
I don’t have a dns server available, so I appended a mapping to the hosts file for testing purposes.
So I want to use caddy to generate a self-signed certificate for test.mytestserver.dev
But when I wrote the domain name in the caddyfile it applied for the publicly trusted certificate. for example through Let’s Encrypt.
But i want to generate by pki.ca.local…
I have seen in the documentation that tls internal is used.
But I don’t have a good understanding of it, and I might need an example that looks like my scenario.
2. Error messages and/or full log output:
no error, just a question of usage
3. Caddy version:
4. How I installed and ran Caddy:
- Use the official binary file
a. System environment:
c. Service/unit/compose file:
Did not use
d. My complete Caddy config:
192.168.89.51 reverse_proxy 127.0.0.1:8080
5. Links to relevant resources: