ACME申请免费SSL泛域名证书 -Openwrt ACME插件

安装ACME插件

Openwrt软件包搜索安装 luci-app-acme, 服务-ACME证书选项下添加新证书配置。

配置选项-常规设置

域名 添加两条域名记录 *.0x0.pub  0x0.pub

配置选项-质询验证

DNS API 填写 dns_cf  DNS API凭证填写两条记录分别是CF_Key="你的CloudFlare API Key"  CF_Email="你的CloudFlare登录用户名" 。保存应用后在ACME全局配置的状态文件夹可以找到 Letsencrypt 颁发的域名证书文件。 *.0x0.pub.key 是泛域名证书私钥,fullchain.cer 是域名全链证书

续签证书错误解决

Invalid status. Verification error details: DNS problem: NXDOMAIN looking up TXT
删除此域名存在的TXT记录。

Cannot find DNS API hook for: dns_cf
You need to add the TXT record manually.
Add the following TXT record:
手动添加提示的两条TXT记录。

Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 2
Signing error: wrong status
更新curl libcurl4。