正如问题所问的,对于Ubuntu18.04,如何在Nginx web服务器上有效地启用加密的HTTPS?具体来说,我需要使用“让我们加密”来安装免费的TLS/SSL证书来启用加密。
发布于 2018-07-05 07:11:12
这应该能起作用。
在服务器上安装Certbot软件。
添加存储库:
sudo add-apt-repository ppa:certbot/certbot更新包列表以获取新存储库的包信息:
sudo apt update 用apt安装Certbot的Nginx软件包:
sudo apt install python-certbot-nginx通过允许Nginx完整配置文件允许HTTPS通信,并删除冗余的Nginx配置文件允许:
sudo ufw allow 'Nginx Full'
sudo ufw delete allow 'Nginx HTTP' 使用Nginx插件获得SSL证书:
sudo certbot --nginx -d example.com -d www.example.com 如果我忘记了什么,请告诉我,我会相应地编辑。
https://askubuntu.com/questions/1052320
复制相似问题