简体   繁体   English

laravel 5.5上的SSL

[英]SSL On laravel 5.5

I just created a website with laravel, deployed it on my Virtual Machine, and it's ready to go. 我刚刚使用laravel创建了一个网站,并将其部署在我的虚拟机上,并且可以使用了。 Now I need to install an SSl certificate to make the HTTPS version usable. 现在,我需要安装SSl证书以使HTTPS版本可用。

I asked my boss to buy the SSL Certificate, so how would I use it to make my website's communication encrypted ? 我要求老板购买SSL证书,那么我将如何使用它对网站的通信进行加密? Do I install using my Laravel configuration ? 我可以使用Laravel配置进行安装吗? or do I install it on apache and it will work for all websites that run through my server ? 还是我将其安装在apache上,并且它适用于通过服务器运行的所有网站?

Please help! 请帮忙! Thanks! 谢谢!

You have to configure it in your web server (apache nginx) 您必须在Web服务器中配置它(Apache Nginx)

Basically what you have to do is: - Configure certificate - Configure private key 基本上,您要做的是:-配置证书-配置私钥

Apache guide https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html Apache指南https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html

Nginx guide http://nginx.org/en/docs/http/configuring_https_servers.html Nginx指南http://nginx.org/en/docs/http/configuring_https_servers.html

Certificates are valid for the specified domain. 证书对指定的域有效。 This can be a wildcard like *.example.com or a specific one www.example.com or multiple specific ones. 这可以是* .example.com之类的通配符,也可以是一个特定的www.example.com或多个特定的通配符。

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

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