acme.sh 签发证书如果提示 Error creating new account 试试这个解决方法

24 年 1 月 18 日用 acme.sh 命令签发 ssl 证书,使用的 --issue参数。

acme.sh --issue --dns dns_dp -d  xxx.com -d www.xxx.com  --force

会提示错误:

Error, can not get domain token "type":"dns-01","url":"https://acme.zerossl.com/v2/DV90/chall/-qex1VSFysSVmG2eionAGQ","status":"invalid","error":{

然后更换了 CA 机构到 letsencrypt之后:

 acme.sh --set-default-ca --server letsencrypt

再次运行签发命令,仍然提示错误:

Register account Error: {
  "type": "urn:ietf:params:acme:error:invalidContact",
  "detail": "Error creating new account :: invalid contact domain. Contact emails @example.com are forbidden",
  "status": 400
}

解决方法

1、更换了 CA 机构到 letsencrypt,上面有命令。

2、找到文件 ~/.acme.sh/account.conf,修改这 ACCOUNT_EMAIL,改成常用邮箱。

3、重新运行签发命令

 

- EOF -

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章