获取免费https认证 详解certbot使用步骤

  • https是个好东西, 它能让为你的信息进行加密, 让信息更安全, chrome会将没有https的网站标记为”不安全”
  • 早些时候, 将http转换为https是需要收费的, 但现在有了一些开源项目, 为我们提供免费的https服务,
  • 更可贵的是, 不仅免费, 而且安装非常简单

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

获取免费https认证 详解certbot使用步骤

按需获取https安装脚本

  • 选择服务软件(apach和nginx)
获取免费https认证 详解certbot使用步骤
  • 选择操作系统类型
获取免费https认证 详解certbot使用步骤

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

获取免费https认证 详解certbot使用步骤

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

yum -y install epel-releasewget -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
获取免费https认证 详解certbot使用步骤
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
获取免费https认证 详解certbot使用步骤

安装 python2-certbot-nginx

yum install python2-certbot-nginx
获取免费https认证 详解certbot使用步骤

将cerbot配置到nginx

certbot --nginx
    1. 输入你的邮箱名
获取免费https认证 详解certbot使用步骤
    1. 同意协议
获取免费https认证 详解certbot使用步骤
    1. 允许邮件推送
获取免费https认证 详解certbot使用步骤
    1. 选择添加https的域名
获取免费https认证 详解certbot使用步骤

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

    1. 同时保留http和https
获取免费https认证 详解certbot使用步骤
    1. 配置完成, 查看测试报表
获取免费https认证 详解certbot使用步骤
  • 测试zhaoolee.com
获取免费https认证 详解certbot使用步骤

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

获取免费https认证 详解certbot使用步骤

查看网站

获取免费https认证 详解certbot使用步骤
获取免费https认证 详解certbot使用步骤
获取免费https认证 详解certbot使用步骤
获取免费https认证 详解certbot使用步骤

免费证书续期

  • 目前安装的https每隔90天,就会失效, 你可以在失效之前使用certbot renew --dry-run命令, 免费进行续费更新
获取免费https认证 详解certbot使用步骤

小结:

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

文章链接:https://www.sbkko.com/ganhuo-564.html
文章标题:获取免费https认证 详解certbot使用步骤
文章版权:SBKKO 所发布的内容,部分为原创文章,转载请注明来源,网络转载文章如有侵权请联系我们!

给TA打赏
共{{data.count}}人
人已打赏
干货分享

电子相册MV制作,简单3步就搞定!海量视频主题,字幕、配乐……

2018-9-18 23:53:00

干货分享

“Typora+Snipaste+MPic+七牛云”打造高效文字输出工具组合 - 草稿

2018-9-19 10:06:00

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索