caddy-dns / dnspod

MIT License
32 stars 10 forks source link

Possible obtain one wildcard cert file contain parent and children domains ? #9

Open deancn opened 2 years ago

deancn commented 2 years ago

Caddyfile like this,

*.hello.airdb.net hello.airdb.net {
    tls {
        #dns dnspod {env.DNSPOD_TOKEN}
        dns dnspod 0000,xxxxxxxx
    }

    @service host hello.airdb.net
    reverse_proxy @service http://127.0.0.1:8000

    @serviceA host a.hello.airdb.net
    reverse_proxy @serviceA http://127.0.0.1:8000

    @serviceB host b.hello.airdb.net
    reverse_proxy @serviceB http://115.159.93.223:8888
}

And will get 2 certs

  1. hello.airdb.net
  2. wildcard_.hello.airdb.net

Is it possible all in one cert? means wildcard_.hello.airdb.net contain hello.airdb.net.

tareny commented 8 months ago

dnspod专区,应该看得懂中文吧 根据作者的回复,caddy会申请单证书,而不会把泛域名和主域名放在同一个证书里,可以参考这个工单