简体   繁体   English

使用 AWS 负载均衡器的证书颁发机构 SSL

[英]Certificate authority SSL using AWS load balancer

I have a frontend and backend server on different web hosting, I used Netlify for hosting frontend and AWS for hosting backend when I connected frontend with backend give me error : Mixed Content Error (Http/Https)我在不同的网络托管上有一个前端和后端服务器,当我将前端与后端连接时,我使用 Netlify 托管前端和 AWS 托管后端给我错误:混合内容错误 (Http/Https)

Mixed Content: The page at 'https://www.frontend-domain.net/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://domain-eu-west-3.elb.amazonaws.com'.混合内容:“https://www.frontend-domain.net/”页面已通过 HTTPS 加载,但请求不安全的 XMLHttpRequest 端点“http://domain-eu-west-3.elb.amazonaws.com” . This request has been blocked;此请求已被阻止; the content must be served over HTTPS.内容必须通过 HTTPS 提供。

because frontend uses https but backend uses http.( http://domain-eu-west-3.elb.amazonaws.com ).因为前端使用 https 而后端使用 http.( http://domain-eu-west-3.elb.amazonaws.com )。 I use loadbalancer to connect to my ec2 instance(backend).我使用负载均衡器连接到我的 ec2 实例(后端)。

the question is : how i make loadbalancer(domain-eu-west-3.elb.amazonaws.com) uses https and add certificate ?问题是:我如何使负载均衡器(domain-eu-west-3.elb.amazonaws.com)使用 https 并添加证书? is it free ?是免费的吗?

how i make loadbalancer(domain-eu-west-3.elb.amazonaws.com) uses https and add certificate ?我如何使负载均衡器(domain-eu-west-3.elb.amazonaws.com)使用 https 并添加证书?

You need your own domain .您需要自己的域 You can't use domain-eu-west-3.elb.amazonaws.com because this is AWS-owned domain, not yours.您不能使用domain-eu-west-3.elb.amazonaws.com因为这是 AWS 拥有的域,而不是您的。 Once you get your domain, you can get free SSL cert from AWS ASM.获得域后,您可以从 AWS ASM 获得免费的SSL 证书。

is it free ?是免费的吗?

There are some free domain providers.有一些免费的域名提供商。 You can try that.你可以试试。 But for anything serious, its better to actually buy something.但是对于任何严肃的事情,最好还是实际购买一些东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM