程序员Web前端之路工具癖

添加免费https 详解certbot使用步骤

2018-09-19  本文已影响142人  zhaoolee

免费https项目主页: https://certbot.eff.org/

按需获取https安装脚本

详细步骤:以nginx配合腾讯云centos7镜像为例

安装epel 增强源(腾讯云的centos7镜像是配置好的, 可以跳过这一步)

yum -y install epel-release
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
# 刷新yum源
yum clean all && yum makecache && yum update

安装yum-utils

yum -y install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

安装 python2-certbot-nginx

yum install python2-certbot-nginx

将cerbot配置到nginx

certbot --nginx

对配置子域名有疑问的, 可以查看我之前写过的nginx配置二级域名

https://www.ssllabs.com/ssltest/analyze.html?d=zhaoolee.com

查看网站

免费证书续期

小结:

随着谷歌强制推行https, 支持https的网站也越来越多, 博主认为这是一件好事, 能让我们在互联网的数据更安全, 记得听过一期网络安全公开课, 课上推荐将http改为https的种种好处, 而且还推荐了将支持https网站的所有http请求强制转换为https的插件,chrome插件链接 HTTPS Everywhere

上一篇下一篇

猜你喜欢

热点阅读