Traefik 2.2.8始终使用以下配置提供默认证书:
[entryPoints]
[entryPoints.https]
address = ":8001"
[[tls.certificates]]
certFile = "/[...]/x1.y1.z1.crt"
keyFile = "/x1.y1.z1.key"
[[tls.certificates]]
certFile = "/[...]/x2.y2.z2.crt"
keyFile = "/[...]/x2.y2.z2.key"
<a dozen more certificates>
[http.routers.1]
entryPoints = ["https"]
service = "1"
rule = "Host(`x1.y1.z1`)"
[http.routers.1.tls]
[[http.routers.1.tls.domains]]
sans = ["x1.y1.z1"]
[http.services.1]
[http.services.1.loadBalancer]
[[http.services.1.loadBalancer.servers]]
url = "http://internal:10012"
我从V1迁移了,所以我确定证书可以正常工作。甚至为路由器添加SAN也无济于事。
答案 0 :(得分:0)
所有证书必须存储在文件提供程序加载的特殊文件中。