我想使用traefik生成通配符证书但不起作用 .

这是我的 traefik.toml

[acme]
email = "myemail"
caServer = "https://acme-v02.api.letsencrypt.org/directory"
storageFile = "/etc/traefik/acme/acme.json"
entryPoint = "https"
onDemand = true
#OnHostRule = true
  [acme.httpChallenge]
  entryPoint = "http"

[[acme.domains]]
  main = "*.mydomain.com"
  sans = ["mydomain.com"]


[web]
address = ":8080"
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "localhost"
watch = true
swarmmode = true
exposedbydefault = false

你能给我一个解决方案吗?谢谢 .