解决 ZeroSSL申请SSL证书经常遇到Timeout问题
原因: 用ZeroSSL申请SSL证书经常遇到Timeout问题,申请不成功
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | [root@iZj6c03wjcflft0iuetdb9Z ~]# sudo screen -S lnmp [Tue Nov 1 15:12:30 CST 2022] checking [Tue Nov 1 15:12:30 CST 2022] url='https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA' [Tue Nov 1 15:12:30 CST 2022] payload [Tue Nov 1 15:12:30 CST 2022] Retrying post [Tue Nov 1 15:12:30 CST 2022] POST [Tue Nov 1 15:12:30 CST 2022] _post_url='https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA' [Tue Nov 1 15:12:30 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L -g ' [Tue Nov 1 15:12:33 CST 2022] _ret='0' [Tue Nov 1 15:12:33 CST 2022] _hcode='0' [Tue Nov 1 15:12:33 CST 2022] code='200' [Tue Nov 1 15:12:33 CST 2022] Processing, The CA is processing your order, please just wait. (28/30) [Tue Nov 1 15:12:33 CST 2022] sleep 2 secs to verify again [Tue Nov 1 15:12:35 CST 2022] checking [Tue Nov 1 15:12:35 CST 2022] url='https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA' [Tue Nov 1 15:12:35 CST 2022] payload [Tue Nov 1 15:12:35 CST 2022] Retrying post [Tue Nov 1 15:12:35 CST 2022] POST [Tue Nov 1 15:12:35 CST 2022] _post_url='https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA' [Tue Nov 1 15:12:35 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L -g ' [Tue Nov 1 15:12:38 CST 2022] _ret='0' [Tue Nov 1 15:12:38 CST 2022] _hcode='0' [Tue Nov 1 15:12:38 CST 2022] code='200' [Tue Nov 1 15:12:38 CST 2022] Processing, The CA is processing your order, please just wait. (29/30) [Tue Nov 1 15:12:38 CST 2022] sleep 2 secs to verify again [Tue Nov 1 15:12:40 CST 2022] checking [Tue Nov 1 15:12:40 CST 2022] url='https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA' [Tue Nov 1 15:12:40 CST 2022] payload [Tue Nov 1 15:12:40 CST 2022] Retrying post [Tue Nov 1 15:12:40 CST 2022] POST [Tue Nov 1 15:12:40 CST 2022] _post_url='https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA' [Tue Nov 1 15:12:40 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L -g ' [Tue Nov 1 15:12:42 CST 2022] _ret='0' [Tue Nov 1 15:12:42 CST 2022] _hcode='0' [Tue Nov 1 15:12:42 CST 2022] code='200' [Tue Nov 1 15:12:42 CST 2022] t1.hongshengstone.com:Timeout [Tue Nov 1 15:12:42 CST 2022] pid [Tue Nov 1 15:12:42 CST 2022] No need to restore nginx, skip. [Tue Nov 1 15:12:42 CST 2022] _clearupdns [Tue Nov 1 15:12:42 CST 2022] dns_entries [Tue Nov 1 15:12:42 CST 2022] skip dns. [Tue Nov 1 15:12:42 CST 2022] _on_issue_err [Tue Nov 1 15:12:42 CST 2022] Please check log file for more details: /usr/local/acme.sh/acme.sh.log [Tue Nov 1 15:12:42 CST 2022] url='https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA' [Tue Nov 1 15:12:42 CST 2022] payload='{}' [Tue Nov 1 15:12:42 CST 2022] Retrying post [Tue Nov 1 15:12:42 CST 2022] POST [Tue Nov 1 15:12:42 CST 2022] _post_url='https://acme.zerossl.com/v2/DV90/chall/BNDMEv8K2xjUkH6mHnWypA' [Tue Nov 1 15:12:42 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L -g ' [Tue Nov 1 15:12:45 CST 2022] _ret='0' [Tue Nov 1 15:12:45 CST 2022] _hcode='0' [Tue Nov 1 15:12:45 CST 2022] code='200' |
这个问题太恶心了,国外网友也经常遇到,看来这是ZeroSSL的普通问题:
1 | https://github.com/acmesh-official/acme.sh/issues/3842 |
解决办法: 换 BuyPass 代替 ZeroSSL 申请.
1 2 3 4 | lnmp vhost add t2.hongshengstone.com /home/wwwroot/default/t2 271824820@qq.com |
选择3 (千万别选4)
1 2 3 4 | 1: Use your own SSL Certificate and Key 2: Use Let's Encrypt to create SSL Certificate and Key 3: Use BuyPass to create SSL Certificate and Key 4: Use ZeroSSL to create SSL Certificate and Key |
让 http://t2.hongshengstone.com 跳转到 https://t2.hongshengstone.com
1 2 | cd /usr/local/nginx/conf/vhost vi t2.hongshengstone.com.conf |