我在docker-compose v3上使用了Let's Encrypt伴侣。我有多个主机使用SSL。在我的Nginx容器上,我公开了:
- VIRTUAL_HOST=api.example.com,service.example.com
- LETSENCRYPT_HOST=api.example.com,service.example.com
- [email protected]
此设置工作正常,但如果我在service.example.com上读取SSL证书详细信息,我会将其命名为api.example.com。这是预期的行为还是我能以某种方式修复它?非常感谢。
好吧,这似乎是SAN(主题备用名称)证书的预期行为。 Here github讨论。