首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    使用Lets Encrypt的SSL证书配置HTTPS手记

    首先创建一个文件夹,用于letsencrypt的目录。 $ sudo mkdir -p /etc/letsencrypt 然后编辑nginx,启动一个基本的web服务。...$ sudo certbot certonly --webroot -w /var/www -d www.example.com 运行命令之后,会有一些选择,Yes或者No,有一步需要提供一个邮箱,用于证书快过期的时候收到...上面的命令中,certonly是子命令,webroot是一个插件。w参数表示网站的根目录,即certbot创建.well-know的地方,d参数表示签发的域名。...使用certbot的工具,我们可以忽略这些目录。当前使用的证书存放在live文件下。...这里我们也忽略。 配置完毕之后,重启nginx,此时再访问你的域名www.example.com就能看见https的协议,浏览器加上了一把绿色的小锁。

    3.6K82

    🦞 用 QClaw龙虾 智能运维:给网站部署免费 SSL 全记录

    python3-certbot-nginx⚠️ 踩坑提示:直接用 certbot --nginx 会失败,因为 Certbot 会尝试重启系统 Nginx,但 80 端口已被宝塔 Nginx 占用。...正确做法是用 --webroot 模式,让宝塔 Nginx 来处理验证请求。...申请 api 子域名证书certbot certonly --webroot \ -w /www/wwwroot/education-server-master \ -d api.yourdomain.com...宝塔环境下不能直接用 certbot --nginx宝塔有自己的 Nginx,系统 Certbot 不认识它的配置路径,必须用 --webroot 模式手动申请证书,再手动写配置。2....前端打包文件里可能有硬编码的 HTTP 地址这是最容易被忽略的坑。服务端配好了 HTTPS,但前端 JS 里的 API 地址还是 http://,浏览器照样拦截。

    79411

    在 Ubuntu 18.04 上使用 Let’s Encrypt 来保护 Nginx

    安装 Certbot Certbot 是一个功能齐全且易于使用的工具,可以自动完成获取和更新 Let's Encrypt SSL证书以及配置Web服务器以使用它们的任务。...获取Let's Encrypt SSL证书 要获得我们域的 SSL 证书,我们将使用 Webroot 插件,该插件通过在 ${webroot-path}/。...www.example.com; include snippets/letsencrypt.conf; } 重新加载 Nginx 配置以使更改生效: sudo systemctl reload nginx 您现在可以使用 webroot...插件运行 Certbot 并通过发出以下命令获取 SSL 证书文件: sudo certbot certonly --agree-tos --email admin@example.com --webroot...由于我们在续订证书后使用 certbot webroot 插件,因此我们还必须重新加载 nginx 服务。

    1.6K20

    CertBot 泛域名签证-续订 Nginx CentOs7环境

    CertBot 泛域名签证-续订 Nginx CentOs7环境 2018年3月13日,Let’s Encrypt 终于在社区宣布支持通配符证书,但是泛域名有以下限制: 无法通过webroot方式签证,...certbot提供了多个第三方的插件,但是没有国内的DNS服务商插… 主域名+泛域名 certbot certonly -d *.2broear.com -d 2broear.com –manual –...certonly --webroot -w /usr/share/nginx/html/ -d yourdomain.com 主域名+泛域名 certbot certonly -d *.2broear.com...进行 泛域名签证-续约 2018年3月13日,Let’s Encrypt 终于在社区宣布支持通配符证书,但是泛域名有以下限制: 无法通过webroot方式签证,必须使用dns的方式。...,所以我们要先检查一下certbot的版本是否达到需求: [root@OPS ~]# certbot --version 使用以下命令即可签发泛域名证书: [root@OPS ~] certbot certonly

    79010

    【译】Let’s Encrypt – 免费的SSLTLS证书

    安装客户端软件 如果你的操作系统包含了一个certbot的安装包,从这里安装它 ,然后使用相应的certbot命令。如果没有的话,则可以使用我们提供的cert-auto包装器脚本快速的获取一份。...$ git clone https://github.com/certbot/certbot $ cd certbot $ ..../certbot-auto --help certbot-auto 与certbot命令拥有相同的命令行参数;它会安装所有的依赖并且自动更新 Certbot 的代码(这个过程下载的文件比较大,因此比较慢...下面是一些例子: 要获取一个可以在任何web服务器的webroot目录上能够运行证书,需要使用“webroot”插件: certbot certonly --webroot -w /var/www/example...例如: certbot certonly --keep-until-expiring --webroot -w /var/www/example.com -d example.com,www.example.com

    1.6K40

    使用 Certbot 安装 Letsencrypt 证书

    例如 demo.mydomain.com 指向 192.168.0.1 的IP地址 3、要等到新创建的域名解析能在公网上被解析到 安装 Certbot 前往 Certbot 官网按照步骤安装 certbot...Certbot 或者直接获取自动安装脚本,然后在按如下两种模式生成证书 wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto # 给脚本执行权限...Certbot 两种生成证书的方式 certbot 模式(推荐) certbot 会启动自带的 nginx(如果服务器上已经有nginx或apache运行,需要停止已有的nginx或apache)生成证书.../certbot-auto certonly --standalone -d www.example.com webroot 模式 1、配置验证目录 server { listen 80; server_name...脚本生成证书 certbot certonly --webroot -w /var/www/example/ -d www.example.com -d example.com -w /var/www

    5.4K51
    领券