实战撸Https 利用Let’s Encrypt在Ubuntu 16.04上配置免费的Https

证书来源: Let’s Encrypt

站点支持:https://certbot.eff.org/

VPS环境:Ubuntu 16.04

Web服务器:Apache2

下面是配置流程,比较简单,按照官网的操作就可以进行了。

1.首先是安装cerbot到服务器


$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-apache

安装过程中一路yes和enter就可以了。

2.安装完成之后,开始使用cerbot

$ sudo certbot –apache

配置成功,你的https已经可以使用了。

3.cerbot的证书是时效性的,接下来还要开启证书的自动更新功能。

$ sudo certbot renew –dry-run

运行如下命令,启动证书的自动更新。好了一切配置完成。

你可以愉快的使用https网站了。

 

此条目发表在Ubuntu系统, 不误正业, 杂七杂八, 网站建设分类目录。将固定链接加入收藏夹。