社区 技术交流 请教高手关于国内vps域名证书注册失败的问题(同样的代码在海外vps可以)

请教高手关于国内vps域名证书注册失败的问题(同样的代码在海外vps可以)

技术交流
私信 2 122
Anton1995
Anton1995 注册会员 03月01日 00:45
签名:这家伙很懒,什么也没留下

用最常用的方式

新的国内vps,安装os或者ubuntu系统都尝试过,均不行。同样的操作,同样的域名,海外vps则可以

  1. yum update -y #CentOS 命令
  2. yum install -y curl #CentOS 命令
  3. yum install -y socat #CentOS 命令
  4. curl https://get.acme.sh/ | sh
  5. ~/.acme.sh/acme.sh --register-account -m xxxx@xxxx.com
  6. ~/.acme.sh/acme.sh --issue -d mydomain.com --standalone

进行到这步时候

[2023年 02月 28日 星期二 23:50:09 CST] Using CA: https://acme.zerossl.com/v2/DV90

[2023年 02月 28日 星期二 23:50:09 CST] Standalone mode.
[2023年 02月 28日 星期二 23:50:09 CST] Creating domain key
[2023年 02月 28日 星期二 23:50:09 CST] The domain key is here: /root/.acme.sh/xxx(域名省去).com_ecc/xxx(域名省去).com.key
[2023年 02月 28日 星期二 23:50:09 CST] Single domain='xxx(域名省去).com'
[2023年 02月 28日 星期二 23:50:09 CST] Getting domain auth token for each domain
[2023年 02月 28日 星期二 23:50:15 CST] Getting webroot for domain='xxx(域名省去).com'
[2023年 02月 28日 星期二 23:50:15 CST] Verifying: xxx(域名省去).com
[2023年 02月 28日 星期二 23:50:15 CST] Standalone mode server
[2023年 02月 28日 星期二 23:50:18 CST] Processing The CA is processing your order please just wait. (1/30)
[2023年 02月 28日 星期二 23:50:23 CST] xxx(域名省去).com:Verify error:"error":{
[2023年 02月 28日 星期二 23:50:23 CST] Please add '--debug' or '--log' to check more details.
[2023年 02月 28日 星期二 23:50:23 CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh


 输入debug

[2023年 03月 01日 星期三 00:21:18 CST] xxx(域名省去).com:Verify error:"error":{
[2023年 03月 01日 星期三 00:21:18 CST] Debug: get token url.
[2023年 03月 01日 星期三 00:21:18 CST] GET
[2023年 03月 01日 星期三 00:21:18 CST] url='http://xxx(域名省去).com/.well-known/acme-challenge/LaeLbf8HLv4qUNib3EQjRDrAIKZlTkumkS1oHJi-Pko'
[2023年 03月 01日 星期三 00:21:18 CST] timeout=1
[2023年 03月 01日 星期三 00:21:18 CST] _CURL='curl --silent --dump-header /root/.acme.sh/http.header -L -g --connect-timeout 1'
[2023年 03月 01日 星期三 00:21:20 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 28

打赏
回帖
  • Ltongxue
    Ltongxue 高级会员 03月01日 07:08
    签名:这家伙很懒,什么也没留下
    #1

    应该是ssl授权的域名在国内被屏蔽了 试试freessl.cn行不行

    0 回复 私信
  • Anton1995
    Anton1995 注册会员 (楼主) 03月01日 12:06
    签名:这家伙很懒,什么也没留下
    #2

    谢谢@Ltongxue的提示。

    后来经过各种测试 发现国内服务器的域名证书,必须把域名也转回国内的DNS服务商(就是腾讯云的dnspod,freesslcn里面acme的配置命令就只有dns_dp一种,理论上用cloudflare命令就应该是dns_cf,这应该就是只能用dnspod或其他国内的服务商我猜)

    所以国内vps装ssl证书,域名也必须转回国内,都需要实名认证 

    目前测试就是这样 如果有其它意见欢迎留言

    0 回复 私信
最近打赏
2023-02-25:shihao 打赏了 30积分
2023-02-22:drk 打赏了 88积分
2023-02-08:小伙子 打赏了 100积分
2022-10-11:Ltongxue 打赏了 10积分
2022-10-07:鸡哥 打赏了 10积分
最近交易
2023-03-29:sw9960 购买了卡券 10积分
2023-02-25:daniel20120223 购买了卡券 30积分
2023-02-25:KKN 购买了卡券 30积分
2023-02-25:RFR 购买了卡券 30积分
2023-02-25:SSS 购买了卡券 30积分