跳到主要内容

注册设备

注册

重要信息

您需要修改高亮位置为您的真实邮箱,否则您将无法:

  • 续期通知(包含自动续期异常通知)
  • 吊销您的证书(需要邮件确认)
acme.sh --register-account --accountemail \
[email protected].com \
--server http://acme.hi.cn/directory

如果提示

❯ acme.sh --register-account --accountemail \
<[email protected]> \
--server http://acme.hi.cn/directory
[202282日 星期二 21时38分53秒 CST] Registering account: http://acme.hi.cn/directory
[202282日 星期二 21时38分55秒 CST] Registered
[202282日 星期二 21时38分55秒 CST] ACCOUNT_THUMBPRINT='pAQLaWoYYD5PXp1YbrqFtF3BcU_bv3Ns96c51VyT80g'

则表示注册成功。

常见问题

  1. 报错:The contact belongs to a reserved domain, and it's invalid.

    ❯ acme.sh --register-account --accountemail \
    [email protected] \
    --server http://acme.hi.cn/directory
    [202282日 星期二 21时44分33秒 CST] Create account key ok.
    [202282日 星期二 21时44分33秒 CST] Registering account: http://acme.hi.cn/directory
    [202282日 星期二 21时44分34秒 CST] Register account Error: {"type":"urn:ietf:params:acme:error:invalidContact","detail":"The contact belongs to a reserved domain, and it's invalid."}

    报错原因: 因为 example.com 等地址属于保留地址,HiCA 不允许此类 E-mail 地址注册,

    解决方式: 请使用您的真实邮箱。

    如果使用真实邮箱后,问题仍然存在,我们推荐您手工删除 ~/.acme.sh/ca/acme.hi.cn/directory 文件夹,并检查 ~/.acme.sh/account.conf 是否存在邮箱,如果有删除对应那一行,然后再重试。

  2. 不需要每次申请都执行设备注册,只需在 acme.sh 安装成功后执行成功一次即可。