I have two separate servers using the same domain name with separate prefixes, one doing some app stuff and one doing filesharing. Using the autocert
package how can I just configure the cert manager to produce a certificate that I can use on both servers?

通过DNS对多个子域和IP地址使用autocert
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- douzhao4071 2018-11-27 16:20关注
Add both domains to the cert manager white list:
certManager := autocert.Manager{ Prompt: autocert.AcceptTOS, HostPolicy: autocert.HostWhitelist("domain.me", "filesharing.domain.me"), //Your domain here Cache: autocert.DirCache("certs"), //Folder for storing certificates }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报