在 CentOS6 安装 Let'sEncrypt 免费SSL安全证书 实现HTTPS

来源:互联网 发布:淘宝店名设计 编辑:程序博客网 时间:2024/06/06 03:49

看来看去,还是弄个免费的试试吧。

在服务器上SSH登录。

 yum -y update wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto

在运行命令之前,需要先打开 防火墙 上https 443端口

setup 

运行命令,根据提示操作。先做一个站点试试。

 ./certbot-auto

好了。再次运行命令,为另一个站点加上https。

 ./certbot-auto

Let’sEncrypt的证书有效期为90天,可以使用cron 在证书到期前证书renew 。

certbot-auto renew

现在就是这么简单。

注意:
如果现在这个:

Failed authorization procedure. www.jnwangpai.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Error getting validation data

是因为没有打开服务器上防火墙端口。

参考:(文章有些早了)
在CentOS6,CentOS7安装 Let’sEncrypt 免费SSL安全证书

阅读全文
0 0
原创粉丝点击