最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】OneinStack用vhost.sh添加域名报错:Could not get nonce, let’s try again

GET crifan 4054浏览 0评论
折腾:
【已解决】更换WordPress网站的域名从之前xxx换到xxx.it
期间,用OneinStack的vhost.sh去新增域名,结果报错:
# ./vhost.sh
。。。
Do you want to redirect all HTTP requests to HTTPS? [y/n]: y
[Sun May  9 20:04:56 CST 2021] Creating domain key
[Sun May  9 20:04:56 CST 2021] The domain key is here: /root/.acme.sh/www.xxx.it/www.xxx.it.key
[Sun May  9 20:04:56 CST 2021] Single domain='www.xxx.it'
[Sun May  9 20:04:56 CST 2021] Getting domain auth token for each domain
[Sun May  9 20:04:56 CST 2021] Getting webroot for domain='www.xxx.it'
[Sun May  9 20:04:56 CST 2021] Getting new-authz for domain='www.xxx.it'
[Sun May  9 20:04:58 CST 2021] Could not get nonce, let's try again.
然后就一直是:
Could not get nonce, let’s try again.
不清楚具体什么情况
或许升级最新版本即可?
Interactive installation – LEMP Stack
[root@VM_0_10_centos oneinstack]# ./upgrade.sh 


#######################################################################
#       OneinStack for CentOS/RedHat 6+ Debian 7+ and Ubuntu 12+      #
#              Upgrade Software versions for OneinStack               #
#       For more information please visit 
OneinStack - 一键PHP/JAVA安装工具
      # ####################################################################### What Are You Doing?         1. Upgrade Nginx/Tengine/OpenResty/Apache/Tomcat         2. Upgrade MySQL/MariaDB/Percona         3. Upgrade PHP         4. Upgrade Redis         5. Upgrade Memcached         6. Upgrade phpMyAdmin         7. Upgrade OneinStack         8. Upgrade acme.sh         q. Exit Please input the correct option: 7 sed: -e expression #1, char 39: unknown option to `s' Congratulations! OneinStack upgrade successful! What Are You Doing?         1. Upgrade Nginx/Tengine/OpenResty/Apache/Tomcat         2. Upgrade MySQL/MariaDB/Percona         3. Upgrade PHP         4. Upgrade Redis         5. Upgrade Memcached         6. Upgrade phpMyAdmin         7. Upgrade OneinStack         8. Upgrade acme.sh         q. Exit Please input the correct option: q
再去试试:
[root@VM_0_10_centos oneinstack]# ./vhost.sh 


#######################################################################
#       OneinStack for CentOS/RedHat 7+ Debian 8+ and Ubuntu 16+      #
#       For more information please visit 
OneinStack - 一键PHP/JAVA安装工具
      # ####################################################################### What Are You Doing?         1. Use HTTP Only         2. Use your own SSL Certificate and Key         3. Use Let's Encrypt to Create SSL Certificate and Key         q. Exit Please input the correct option: 3 Please input domain(example: www.example.com): www.xxx.it www.xxx.it in the Nginx/Tengine/OpenResty already exist! You can delete /usr/local/nginx/conf/vhost/www.xxx.it.conf and re-create
去删除:
[root@VM_0_10_centos oneinstack]# rm /usr/local/nginx/conf/vhost/www.xxx.it.conf
rm: remove regular file usr/local/nginx/conf/vhost/www.xxx.it.conf y
再试试
问题依旧。
OneinStack Could not get nonce, let’s try again
解决Oneinstack添加站点出现”Could not get nonce, let’s try again”问题_老蒋部落 (itbulu.com)
去升级acme脚本
[root@VM_0_10_centos oneinstack]# ./upgrade.sh 


#######################################################################
#       OneinStack for CentOS/RedHat 7+ Debian 8+ and Ubuntu 16+      #
#              Upgrade Software versions for OneinStack               #
#       For more information please visit 
OneinStack - 一键PHP/JAVA安装工具
      # ####################################################################### What Are You Doing?          1. Upgrade Nginx/Tengine/OpenResty          2. Upgrade Apache          3. Upgrade Tomcat          4. Upgrade MySQL/MariaDB/Percona          5. Upgrade PHP          6. Upgrade Redis          7. Upgrade Memcached          8. Upgrade phpMyAdmin          9. Upgrade OneinStack latest         10. Upgrade acme.sh latest          q. Exit Please input the correct option: 10 [Sun May  9 20:11:42 CST 2021] Installing from online archive. [Sun May  9 20:11:42 CST 2021] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz [Sun May  9 20:11:43 CST 2021] Extracting master.tar.gz [Sun May  9 20:11:43 CST 2021] It is recommended to install socat first. [Sun May  9 20:11:43 CST 2021] We use socat for standalone server if you use standalone mode. [Sun May  9 20:11:43 CST 2021] If you don't use standalone mode, just ignore this warning. [Sun May  9 20:11:43 CST 2021] Installing to /root/.acme.sh [Sun May  9 20:11:43 CST 2021] Installed to /root/.acme.sh/acme.sh [Sun May  9 20:11:43 CST 2021] Good, bash is found, so change the shebang to use bash as preferred. [Sun May  9 20:11:44 CST 2021] OK [Sun May  9 20:11:44 CST 2021] Install success! [Sun May  9 20:11:44 CST 2021] Upgrade success! v2.9.0 What Are You Doing?          1. Upgrade Nginx/Tengine/OpenResty          2. Upgrade Apache          3. Upgrade Tomcat          4. Upgrade MySQL/MariaDB/Percona          5. Upgrade PHP          6. Upgrade Redis          7. Upgrade Memcached          8. Upgrade phpMyAdmin          9. Upgrade OneinStack latest         10. Upgrade acme.sh latest          q. Exit Please input the correct option: q
再试试
正常了:

Do you want to redirect all HTTP requests to HTTPS? [y/n]: y
[Sun May  9 20:12:36 CST 2021] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Sun May  9 20:12:36 CST 2021] Create account key ok.
[Sun May  9 20:12:36 CST 2021] Registering account: https://acme-v02.api.letsencrypt.org/directory
[Sun May  9 20:12:38 CST 2021] Registered
[Sun May  9 20:12:38 CST 2021] ACCOUNT_THUMBPRINT='2IHwjOp0e1b_Rsnwzqy2bqLWWSDaH9hPdmw45zn7fpA'
[Sun May  9 20:12:38 CST 2021] Single domain='www.xxx.it'
[Sun May  9 20:12:38 CST 2021] Getting domain auth token for each domain
[Sun May  9 20:12:40 CST 2021] Getting webroot for domain='www.xxx.it'
[Sun May  9 20:12:40 CST 2021] Verifying: www.xxx.it
[Sun May  9 20:12:44 CST 2021] Pending
[Sun May  9 20:12:46 CST 2021] Success
[Sun May  9 20:12:46 CST 2021] Verify finished, start to sign.
[Sun May  9 20:12:46 CST 2021] Lets finalize the order.
[Sun May  9 20:12:46 CST 2021] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/122870768/9584402276'
[Sun May  9 20:12:48 CST 2021] Downloading cert.
[Sun May  9 20:12:48 CST 2021] Le_LinkCert='https://acme-v02.api.letsencrypt.org/acme/cert/03aa39008712780ed938992af4235f95cbe0'
[Sun May  9 20:12:49 CST 2021] Cert success.
【总结】
此处用OneinStack的:
./vhost.sh
新增域名,结果报错:
Could not get nonce, let's try again.
原因:
生成免费的ssl的证书的脚本过期了。
解决办法:
先升级到最新的OneinStack脚本:
./upgrade.sh
选:
9. Upgrade OneinStack latest
的9
再去升级acme脚本=免费用Let’s Encrypt创建ssl证书的脚本
./upgrade.sh
选:
10. Upgrade acme.sh latest
的 10
即可。

转载请注明:在路上 » 【已解决】OneinStack用vhost.sh添加域名报错:Could not get nonce, let’s try again

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

    85 queries in 0.191 seconds, using 22.17MB memory