首页 > 其他分享 >Let’s Encrypt申请泛域名证书

Let’s Encrypt申请泛域名证书

时间:2024-02-01 18:46:02浏览次数:30  
标签:Encrypt certificate 证书 -- 域名 Let dns com

域名分为主域名 test.com 和泛域名 *.test.com
如果又很多子域名,每个都要配置证书
这也太麻烦了。

所以这次我们来学习 如何搞泛域名证书。

申请证书

执行证书生成命令,
过程中根据命令提示,去云服务商后台增加一条dns,并将certbot生成的参数填写到dns配置的相关位置。

certbot certonly -d *.dingshaohua.com --manual --preferred-challenges dns

按照提示,在你的域名服务商处,添加对应的 DNS TXT 解析记录

为什么certbot 需要你在云服务商增加dns,还不是为了证明这个域名是你所有权的

再回车继续,证书就生成了。

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/dingshaohua.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/dingshaohua.com/privkey.pem
This certificate expires on 2024-05-01.
These files will be updated when the certificate renews.

NEXT STEPS:
- This certificate will not be renewed automatically. Autorenewal of --manual certificates requires the use of an authentication hook script (--manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate's expiry date.

使用证书

标签:Encrypt,certificate,证书,--,域名,Let,dns,com
From: https://www.cnblogs.com/dingshaohua/p/18001862

相关文章

  • Let’s Encrypt申请证书
    前提安装好ngixn,并配置解析好你的域名,仅仅留下证书配置处不填写即可。安装certbotcertbot官方推荐的自动化脚本,用来申请免费SSL证书的。(certbot中文翻译是证书机器人的意思)#安装certbot以及certbotnginx插件yuminstallcertbotpython3-certbot-nginx-y生成......
  • 判断域名dns是否被劫持或污染
    nslookup域名144.223.234.234,即可判断该域名是否被污染,由于144.223.234.234不存在,理应没有任何返回。但我们却得到了一个错误的IP(不确定)。即可证明这个域名已经被DNS污染了解决方案播报编辑1、使用各种SSH加密代理,在加密代理里进行远程DNS解析,或者使用VPN上网。2、修改host......
  • stream里面filter foreach 还能再fileter吗
    是的,在 Java 的 Stream API 中,你可以在 filter 和 forEach 操作之间再次使用 filter。实际上,你可以根据需要链式调用多个中间操作(如 filter、map 等),但请注意,forEach 是一个终端操作,它会消费流并产生一个非流的结果。一旦调用了 forEach 或其他任何终端操作,流就被消......
  • const copyStories = [...stories] 和 let storiesToDisplay = stories.slice(); 两
    constcopyStories=[...stories]和letstoriesToDisplay=stories.slice();两种复制数组的方式,哪种更优雅?在JavaScript中,constcopyStories=[...stories](使用扩展运算符)和letstoriesToDisplay=stories.slice()都可以用来复制数组,并且都能生成一个新的数组。这两种......
  • 2、linux增加域名代替ip
    linux增加域名代替ip1、查看当前的域名配置列表cat/etc/hosts2、配置域名vi/etc/hosts/etc/hosts:192.168.0.10为当前服务器ip192.168.0.20为配置其他服务ip127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1localhostl......
  • P3002 [USACO10DEC] Threatening Letter G
    https://www.luogu.com.cn/problem/P3002首先考虑一个显然的dp,设\(f_i\)表示最后一刀切在\(i\)上,并将\(1\simi\)全部剪出的最小刀数。转移显然是\(f_i=\min_{0\lej<i,t_{j+1\simi}\ins}f_j+1\),其中\(t_{j+1\simi}\)表示字符串\(t\)的子串\([j+1,i]\),\(t\ins\)......
  • gulp : 无法将“gulp”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名
    https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&rsv_idx=1&tn=baidu&wd=gulp%20%3A%20%E6%97%A0%E6%B3%95%E5%B0%86%E2%80%9Cgulp%E2%80%9D%E9%A1%B9%E8%AF%86%E5%88%AB%E4%B8%BA%20cmdlet%E3%80%81%E5%87%BD%E6%95%B0%E3%80%81%E8%84%9A%E6%9C%AC%E6%96......
  • 深入解析CompletableFuture的功能和用法
    https://zhuanlan.zhihu.com/p/650390185?utm_id=01.CompletableFuture简介1.1概述CompletableFuture是Java8中引入的一个类,它实现了CompletionStage接口,提供了一组丰富的方法来处理异步操作和多个任务的结果。它支持链式操作,可以方便地处理任务的依赖关系和结果转换......
  • 【侯捷C++面向对象笔记】补充5-new & delete重载
    平时所使用的new和delete操作,称之为表达式,一般由好几个步骤组成。如上图所示,new表达式会被编译器转化为三个步骤。new表达式不能重载,但其中operatornew是可以重载的。➡️全局::operatornew的重载why不能放在namespace内?因为全局operatornew是放在defaultglobalnamespac......
  • powershell param : 无法将“param”项识别为 cmdlet、函数、脚本文件或可运行程序的
    前言全局说明powershellparam:无法将“param”项识别为cmdlet、函数、脚本文件或可运行程序的名称。一、源码echo"脚本启动"param($age,$address="USA",$name)Write-Host"Name:$name"Write-Output"Address:$address"Write-Output"Age:$age&qu......