如何得到一个免费HTTPS证书?
摘要: 最受欢迎的免费HTTPS证书,了解一下? HTTPS已成为业界标准,这篇博客将教你申请 Let's Encrypt 的免费HTTPS证书。 本文的操作是在Ubuntu 16.04下进行,使用nginx作为Web服务器。 1. 安装Certbot Certbot 可以用于管理(申请、更新、配置、撤销和删除等)Let's Encrypt证书。这里安装的是带nginx插件的certbot: sudo apt-get update sudo apt-get install software-properties-common sudo add-apt-repository -y ppa:certbot/certbot sudo apt-get update sudo apt-get install -y python-certbot-nginx 2. 配置Nginx vim /etc/nginx/conf.d/fundebug.conf 此时还没有HTTPS证书,因此域名只能使用80端口而非443端口,网站只能通过http协议而非https协议访问: http://www.fundebug.com 。 server { listen 80; server_name www.fundebug.com; } 重启nginx: systemctl restart nginx 3.