不同的SSL-证书的网站的不同部分 [英] Different SSL-certificates for different parts of site

查看:112
本文介绍了不同的SSL-证书的网站的不同部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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://example.com/a.jpg"/>
<img src="https://s.example.com/b.jpg"/>

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

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

这篇关于不同的SSL-证书的网站的不同部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆