使用certbot申请*通配符证书,使用letsencrypt证书服务,使用DNS方式手动验证

certbot certonly --preferred-challenges dns --manual -d *.test.cn --server https://acme-v02.api.letsencrypt.org/directory

申请过程:

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Requesting a certificate for *.test.cn


Please deploy a DNS TXT record under the name:

_acme-challenge.test.cn.

with the following value:

Zrs3unTYtP3NfuZ9Z43O5ozijIbeh9Rz2ecq5NE1QrA

Before continuing, verify the TXT record has been deployed. Depending on the DNS

provider, this may take some time, from a few seconds to multiple minutes. You can

check if it has finished deploying with aid of online tools, such as the Google

Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.test.cn.

Look for one or more bolded line(s) below the line ';ANSWER'. It should show the

value(s) you've just added.


Press Enter to Continue

创建计划任务自动复制证书文件到指定目录:

0 0 * * * /bin/cp /etc/letsencrypt/live/test.cn/* /opt/ssl/test.cn

手动复制证书文件到指定目录:

cp -f /etc/letsencrypt/live/test.cn/* /opt/ssl/test.cn

转换为PFX格式证书,用于IIS:

openssl pkcs12 -export -out test.com.pfx -in fullchain.pem -inkey privkey.pem

查看所申请的证书信息:

certbot certificates

源文档 https://eff-certbot.readthedocs.io/en/stable/using.html#dns-plugins

最新文章

  1. import this, Python 之禅
  2. matlab列优先与高维矩阵重构 及 CNN 逐层可视化 on Matlab
  3. matlab中的xcorr 自相关函数
  4. Hive 实现HBase 数据批量插入
  5. 记录一下我使用的vim的配置文件
  6. [转]有关USES_CONVERSION
  7. jQuery 中的children()和 find() 的区别
  8. ThreadLocal,ThreadLocalMap,Thread 的相互关系
  9. andorid
  10. kvm cobbler无人值守批量安装操作系统
  11. Rancher安装使用
  12. 跨站请求伪造(CSRF)-简述
  13. python笔记之类
  14. 201421123042 《Java程序设计》第12周
  15. Linux 安装qt5-designer并集成到Pycharm
  16. 事件冒泡(event bubbling)与事件捕捉(event capturing)
  17. vscode实现vue.js项目的过程
  18. PHP 重置数组为连续数字索引的几种方式
  19. vue拓展题
  20. git 命令行下浏览器tig使用记录

热门文章

  1. golang实现简单的聊天室
  2. Jmeter 快速生成测试报告
  3. 10.MyBatis-Plus的使用
  4. fabric学习笔记5
  5. Word16 供应链的管理论文office真题
  6. Matplotlib 绘图线
  7. class和struct区别
  8. gitlab-CICD共享runner基本配置
  9. GitLab能通过ssh克隆无法通过http克隆,也无法进行流水线,提示port 80: Connection refused
  10. 图片上传 加水印 以及GDI基本画图