I want to use this Config in caddy
:443 {
tls {
# Fetch custom certificate if available
get_certificate http://localhost:9000/get-cert
# Enable on-demand TLS for domains without custom certificates
on_demand
# Optional: Set ask endpoint to validate domains
ask http://localhost:9000/validate-domain
}
}
I want to Achieve the following using caddy:
We are implementing a solution where we automatically generate SSL certificates for customers who do not have their own custom SSL certificates. For these customers, we use Let’s Encrypt’s on-demand SSL certificates.
For customers who already provide their own custom SSL certificates, we simply utilize their existing certificates. These should be also on demand using
get_certificate http://localhost:9000/get-cert
Is it possible to host both solutions on the single instance using above caddy file?
PS: I tried doing that but, only one(ask or Get_certificate) is working.
Any Solution will be appreciated.
Thanks