不同的SSL-证书的网站的不同部分不同、证书、部分、网站

2023-09-11 09:55:02 作者:猪木狼马峰

我在example.com网站加载的所有静态组件从s.example.com(一个Amazon CloudFront的分布)。

I have a site on example.com that loads all its static components from s.example.com (an amazon cloudfront distribution).

现在我想提出一些网页example.com的使用HTTPS,所以我想我会买example.com的SSL证书,但由于网页加载的图片和其他从s.example.com的HTTPS将打破,因为一些组件是不加密的。

Now i would like to make some pages of example.com to use https so i thought i'd buy a ssl certificate for example.com, but since the pages loads images and other stuff from s.example.com the https will break since some components are not encrypted.

是否有可能买s.example.com第二个证书?我想问的原因是因为它的便宜非常多买两个单域的证书比买一个通配符证书。

Is it possible to buy a second certificate for s.example.com? The reason i ask is because it's very much cheaper to buy two single-domain-certificates than to buy a wildcard cert.

推荐答案

您应该能够使用不同的HTTPS运行页:// 域的,没有从浏览器的警报,只要所有的在页面内的组件是HTTP或HTTPS全部

You should be able to run a page with different https://domains with no alert from the browser as long as all the components inside the page are http or all https.

<img src="https://m.xsw88.com/allimgs/daicuo/20230911/3713.png.jpg"/>
<img src="https://m.xsw88.com/allimgs/daicuo/20230911/3714.png.jpg"/>

您将必须保持各种证书是最新的。

You'll have to keep the various certificates up to date.