You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Azure DNS生成SSL证书时,如何解决Certbot未识别参数报错?

解决Certbot --dns-azure-config 参数未识别问题
  • 问题根源:--dns-azure-config 是Certbot Azure DNS插件的专属参数,出现该错误说明你未安装对应的插件。

解决步骤:

  1. 安装Certbot及Azure DNS插件

    • 对于Ubuntu/Debian类系统,使用系统包管理器安装:
      sudo apt update && sudo apt install certbot python3-certbot-dns-azure
      
    • 若系统包无对应插件,可通过pip安装:
      sudo pip install certbot certbot-dns-azure
      
  2. 重新执行证书申请命令
    插件安装完成后,再次运行你的命令:

    sudo certbot certonly --dns-azure-config ~/azure_certbot.ini -d "mydomain.com"
    
  3. 额外验证项

    • 确认~/azure_certbot.ini配置文件包含正确的Azure服务主体信息:tenant_id、client_id、client_secret、subscription_id
    • 确保该服务主体拥有目标Azure DNS区域的写入权限,否则插件无法添加验证所需的TXT记录

内容的提问来源于stack exchange,提问作者kingliiis

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 08:52:11