当我已经拥有根域的 SSL 证书时,如何为子域添加在 dnsimple 上购买的 SSL 证书?

How do I add the SSL certificate I bought on dnsimple for a subdomain when I already have an SSL certificate for the root domain?

在 Heroku 设置中,显示 www.example.com 的 SSL,但我无法为 subdomain.example.com 添加 SSL 证书。

在 DNSimple 说明中,它说在命令提示符下安装证书:

$ heroku certs:add subdomain_example_com.pem subdomain_example_com.key

这导致:

Resolving trust chain... done
 ▸    Potentially Destructive Action
 ▸    This command will change the certificate of endpoint *********-17151 from ⬢ afternoon-********-5203.

$ heroku certs

***********-17151  www.example.com, example.com  2018-01-29

如何为子域安装此 SSL 证书而不破坏 www.example.com 的现有 SSL 证书?

您在 Heroku 上只能拥有一个 SSL 证书,因此如果您想要比 www 更多的子域,则需要一个通配符 SSL 证书。