简体   繁体   English

我可以在没有负载均衡器的情况下为 AWS lightail 设置 ssl 证书吗?

[英]Can I setup an ssl certificate for AWS lightsail without the Load Balancer?

I have an instance built with ubuntu 16.04, it has 2 applications (no bitnami)我有一个用 ubuntu 16.04 构建的实例,它有 2 个应用程序(没有 bitnami)

I setup the vhost pointing two differenst website and it works fine我设置了指向两个不同网站的虚拟主机,它工作正常

but now that I'm trying to validate the ssl certificate I've been struggling但现在我正在尝试验证我一直在努力的 ssl 证书

first, at all, I would like to know if can set it up without using the Load Balancer ?首先,我想知道是否可以在不使用负载均衡器的情况下进行设置?

in the AWS lightsail ssl documentation they only mention the load balancer but I also have a domain with an SSL certificate (I have my domains on namecheap )在 AWS Lightsail ssl 文档中,他们只提到了负载均衡器,但我也有一个带有 SSL 证书的域(我在 namecheap 上有我的域)

I try certbot, looks like people setup without Load Balancer but using the steps from the bitnami documentation.. but I'm not using bitnami我尝试了 certbot,看起来人们没有使用负载均衡器进行设置,但是使用了 bitnami 文档中的步骤..但我没有使用 bitnami

config everything following the steps from https://certbot.eff.org/lets-encrypt/ubuntuxenial-apache tested out on https://www.ssllabs.com/ssltest/ but I couldn't make it work, it only does the http redirect to https...but the https show the herror This site can't be reached配置一切以下步骤从https://certbot.eff.org/lets-encrypt/ubuntuxenial-apache测试了上https://www.ssllabs.com/ssltest/但我不能让它工作,它只做http 重定向到 https...但 https 显示 herror This site can't be reached访问This site can't be reached

I didn't setup any DNS I didn't see any turials using it just in the aws lightsail ssl我没有设置任何 DNS 我没有看到任何 turials 只是在 aws lightail ssl 中使用它

run apachectl configtest no errors运行apachectl configtest没有错误

I create a rule on my firewall for我在我的防火墙上创建了一个规则

http port 80

https port 443

what else can I look at?我还能看什么? I'm really confused and dont know what's the problem我真的很困惑,不知道有什么问题

Really appreciate非常感谢

At the most basic level, SSL is a function of the web server.在最基本的层面上,SSL 是 Web 服务器的一项功能。 You can absolutely use SSL with lightsail without a load balancer.您绝对可以在没有负载平衡器的情况下将 SSL 与 Lightsail 结合使用。

I've used LetsEncrypt quite a lot with my lightsail instances.我在我的光帆实例中使用了很多 LetsEncrypt。

certbot-auto automates the process quite nicely. certbot-auto 可以很好地自动化该过程。

You need to verify that the certificates are setup in your apache configuration.您需要验证是否在 apache 配置中设置了证书。

Take a look at https://community.letsencrypt.org/t/apache-configuration-example/2338 for an example.https://community.letsencrypt.org/t/apache-configuration-example/2338为例。

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

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