Linux Apache 下申请 Let's Encrypt 免费 SSL证书, HTTPS 简单、有效

申请 Let’s Encrypt 免费SSL证书在今天已经非常简单了,很多帖子把此事搞得过于复杂,故在此分享特别简单的方法。

环境:Debian 9 + Apache

前提是域名已经绑定好了(先解析 + 服务器上设置) 具体步骤可以看这篇分享

第一次安装时执行下面两个命令:(需要一个邮箱)

sudo apt-get install certbot
sudo apt install python3-certbot-apache -t stretch-backports

每加密一个域名,执行一次

certbot --apache -d nide.yourdomain.com   #你的域名

也可以一次加密多个域名

certbot --apache -d nide.yourdomain.com -d wode.yourdomain.com  #两个子域名

certbot命令详解

删除SSL证书

certbot revoke -d wode.yourdomain.com   #撤销证书
certbot delete --cert-name wode.yourdomain.com  #删除证书  

猜你喜欢

转载自blog.csdn.net/weinsheimer/article/details/102668848