Skip to content

Can't use different tls issuers on catch-all hosts of different ports #7311

@Zoey2936

Description

@Zoey2936

Issue Details

Hello, somehow caddy doesn't want to use different tls issuers on catch-all hosts of different ports

Caddyfile:

{
        on_demand_tls {
                ask http://127.0.0.1:1234
        }
}

https://:443 {
        respond "443"
        tls {
                on_demand
        }
}

https://:8443 {
        respond "8443"
        tls internal {
                on_demand
        }
}

Error:
Error: adapting config using caddyfile: automation policy from site block is also default/catch-all policy because of key without hostname, and the two are in conflict: []certmagic.Issuer(nil) != []certmagic.Issuer{(*caddytls.InternalIssuer)(0xc000891020)}

Version: v2.10.2 h1:g/gTYjGMD0dec+UgMw8SnfmJ3I9+M2TdvoRL/Ovu6U8=

Assistance Disclosure

AI not used

If AI was used, describe the extent to which it was used.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions